self.AMP_CONFIG={"v":"012405231944000","type":"production","allow-doc-opt-in":["amp-next-page"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"story-ad-placements":0.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1,"esm":1};/*AMP_CONFIG*/;
(()=>{var t,i=class{constructor(){this.nt=new e}abort(){if(!this.nt.rt&&(this.nt.rt=!0,this.nt.st)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.nt,"currentTarget":this.nt};this.nt.st(t)}}get signal(){return this.nt}},e=class{constructor(){this.rt=!1,this.st=null}get aborted(){return this.rt}get onabort(){return this.st}set onabort(t){this.st=t}};function s(){return t||(t=Promise.resolve(void 0))}var n=class{constructor(){this.promise=new Promise(((t,i)=>{this.resolve=t,this.reject=i}))}};function r(t){return new Promise((i=>{i(t())}))}function o(t){const i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;const{message:e,stack:s}=t,n=new Error(e);for(const i in t)n[i]=t[i];return n.stack=s,n}function h(t){let i=null,e="";for(const t of arguments)t instanceof Error&&!i?i=o(t):(e&&(e+=" "),e+=t);return i?e&&(i.message=e+": "+i.message):i=new Error(e),i}function l(t){var i,e;null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t)}function a(t){const i=h.apply(null,arguments);setTimeout((()=>{throw l(i),i}))}function u(t){const i=h.apply(null,arguments);return i.expected=!0,i}var{hasOwnProperty:c,toString:d}=Object.prototype;function f(t){return"[object Object]"===d.call(t)}function p(t){const i=Object.create(null);return t&&Object.assign(i,t),i}function m(t,i){return c.call(t,i)}function g(t,i,e){return i in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function _(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);i&&(s=s.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),e.push.apply(e,s)}return e}function A(t){for(var i=1;i<arguments.length;i++){var e=null!=arguments[i]?arguments[i]:{};i%2?_(Object(e),!0).forEach((function(i){g(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}))}return t}function v(t){return t?Array.prototype.slice.call(t):[]}var{isArray:P}=Array;function y(t){return P(t)?t:[t]}function b(t,i){const e=[];let s=0;for(let n=0;n<t.length;n++){const r=t[n];i(r,n,t)?e.push(r):(s<n&&(t[s]=r),s++)}return s<t.length&&(t.length=s),e}function E(t,i){const e=t.indexOf(i);return-1!=e&&(t.splice(e,1),!0)}function T(t){return"string"==typeof t}function R(t){return 1==(null==t?void 0:t.nodeType)}function M(t){return"number"==typeof t&&isFinite(t)}var w="​​​",I="​​​​";function x(t){return R(t)?t.tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function V(t){return t.indexOf(w)>=0}function S(t,i,e="Assertion failed",s){var n,r;if(i)return i;t&&-1==e.indexOf(t)&&(e+=t);let o=3;const h=e.split("%s");let l=h.shift();const a=[l];for(;h.length;){const t=arguments[o++],i=h.shift();l+=x(t)+i,a.push(t,i.trim())}const u=new Error(l);throw u.messageArray=b(a,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,u),u}function O(t,i,e,s,n){return P(n)?t(e,n.concat([i])):t(e,`${n||s}: %s`,i),i}function k(t,i,e,s,n,r,o,h,l,a,u){return t}function C(t,i){return t}function L(t,i){return t}function N(t,i){return t}function D(t,i,e,s,n,r,o,h,l,a,u){return S(w,t,i,e,s,n,r,o,h,l,a,u)}function U(t){return JSON.parse(t)}function $(t,i){try{return U(t)}catch(t){return null==i||i(t),null}}function F(t){const i=new Uint8Array(t.length);for(let e=0;e<t.length;e++){const s=t.charCodeAt(e);k(s<=255),i[e]=s}return i}function z(t,i){let{crypto:e}=t;const s=new Uint8Array(i);return e.getRandomValues(s),s}function H(t,i,e){let s=0,n=null;function r(r){n=null,s=t.setTimeout(o,e),i.apply(null,r)}function o(){s=0,n&&r(n)}return function(...t){s?n=t:r(t)}}function B(t,i,e){let s=0,n=0,r=null;function o(){s=0;const h=e-(t.Date.now()-n);var l;h>0?s=t.setTimeout(o,h):(l=r,r=null,i.apply(null,l))}return function(...i){n=t.Date.now(),r=i,s||(s=t.setTimeout(o,e))}}var j=["javascript:","data:","vbscript:"],G=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function q(t,i=""){try{return decodeURIComponent(t)}catch(t){return i}}function W(t){const i=p();if(!t)return i;let e;for(;e=G.exec(t);){const t=q(e[1],e[1]),s=e[2]?q(e[2].replace(/\+/g," "),e[2]):"";i[t]=s}return i}function K(t){const{location:i}=t||self;return W(i.originalHash||i.hash)}var Y=t=>self.AMP_CONFIG?self.AMP_CONFIG[t]:null,Q=("string"==typeof Y("cdnProxyRegex")?new RegExp(Y("cdnProxyRegex")):Y("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function X(t){if(!self.document||!self.document.head)return null;if(self.location&&Q.test(self.location.origin))return null;const i=self.document.head.querySelector(`meta[name="${t}"]`);return i&&i.getAttribute("content")||null}var J=Y("thirdPartyUrl")||"https://3p.ampproject.net",Z=Y("thirdPartyFrameHost")||"ampproject.net",tt=("string"==typeof Y("thirdPartyFrameRegex")?new RegExp(Y("thirdPartyFrameRegex")):Y("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,it=Y("cdnUrl")||X("runtime-host")||"https://cdn.ampproject.org",et=/^https?:\/\/localhost(:\d+)?$/,st=Y("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",nt=Y("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",rt=Y("localDev")||!1,ot=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],ht=Y("geoApiUrl")||X("amp-geo-api"),lt="";function at(t){const i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:ct(t,K(t)),esm:!0,test:!1,rtvVersion:ut(t),ssrReady:!1}}(i)}function ut(t){var i;return lt||(lt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"012405231944000"),lt}function ct(t,i){const e=i||K(t);return["1","actions","amp","amp4ads","amp4email"].includes(e.development)||!!t.AMP_DEV_MODE}var dt=()=>{},ft=void 0;function pt(t){ft=t}var mt=(t,i)=>i.reduce(((t,i)=>`${t}&s[]=${gt(i)}`),`https://log.amp.dev/?v=012405231944000&id=${encodeURIComponent(t)}`),gt=t=>encodeURIComponent(String(x(t))),_t=t=>parseInt(K(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var At=self.__AMP_LOG,vt=null;function Pt(t,i){if(!vt)throw new Error("failed to call initLogConstructor");return new vt(self,t,i)}function yt(t){return At.user||(At.user=bt(w)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(At.user.win,t)?At.userForEmbed||(At.userForEmbed=bt(I)):At.user}function bt(t){return Pt(((t,i)=>i||t>=1?4:2),t)}function Et(){return At.dev||(At.dev=Pt((t=>t>=3?4:t>=2?3:0)))}function Tt(t,i,e,s,n,r,o,h,l,a,u){return t}function Rt(t,i,e,s,n,r,o,h,l,a,u){return yt().assert(t,i,e,s,n,r,o,h,l,a,u)}function Mt(t){return(t.ownerDocument||t).defaultView}function wt(t,i){return t.replace(/^|,/g,`$&${i} `)}function It(t){return CSS.escape(t)}function xt(t){k(/^[\w-]+$/.test(t))}function Vt(t,i){return t.querySelector(wt(i,":scope"))}function St(t,i){return t.closest(i)}function Ot(t,i){for(let e=t.lastElementChild;e;e=e.previousElementSibling)if(i(e))return e;return null}function kt(t,i){return xt(i),Vt(t,`> [${i}]`)}function Ct(t){return!!function(t){let i;return T(t)?i=t:R(t)&&(i=t.tagName),!!i&&i.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(C(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var Lt={bubbles:!0,cancelable:!0};function Nt(t,i,e){if(i(t))e();else{const s=new(Mt(t).MutationObserver)((()=>{i(t)&&(s.disconnect(),e())}));s.observe(t,{childList:!0})}}function Dt(t){return new Promise((i=>function(t,i){Nt(t.documentElement,(()=>!!t.body),i)}(t,i)))}function Ut(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function $t(t,i,e){return function(t,i){for(const e in i)t.setAttribute(e,i[e]);return t}(t.createElement(i),e)}function Ft(t){const i=t.isConnected;if(void 0!==i)return i;let e=t;for(;e=zt(e),e.host;)e=e.host;return e.nodeType===Node.DOCUMENT_NODE}function zt(t){if(Node.prototype.getRootNode)return t.getRootNode();let i;for(i=t;i.parentNode&&(!(e=i)||"I-AMPHTML-SHADOW-ROOT"!=e.tagName&&(11!=e.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(e)));i=i.parentNode);var e;return i}function Ht(t,i){let e=t;do{if(e.nextSibling)return!0}while((e=e.parentNode)&&e!=i);return!1}function Bt(t){try{t.focus()}catch(t){}}function jt(t){return t.parent&&t.parent!=t}function Gt(t,i,e,s){const n=e||{};k(t.ownerDocument);const{bubbles:r,cancelable:o}=s||Lt,h=new MessageEvent(i,{data:n,bubbles:r,cancelable:o});t.dispatchEvent(h)}function qt(t,i){return i!==t&&t.contains(i)}function Wt(t){return t.hasAttribute("i-amphtml-ssr")}function Kt(t,i){const e=t.head.querySelector("script[nonce]");if(e){const t=e.nonce||e.getAttribute("nonce");i.setAttribute("nonce",null!=t?t:"")}}function Yt(t,i,e,s){return{left:t,top:i,width:e,height:s,bottom:i+s,right:t+e,x:t,y:i}}function Qt(t){return Yt(Number(t.left),Number(t.top),Number(t.width),Number(t.height))}function Xt(t,i,e){return 0==i&&0==e||0==t.width&&0==t.height?t:Yt(t.left+i,t.top+e,t.width,t.height)}function Jt(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((()=>{}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var Zt=class t{constructor(i,e){this.it=i,this.ot=A({root:null,rootMargin:"0px 0px 0px 0px"},e),this.ut=[],this.ct=null,t._upgraders.push(this.lt.bind(this))}get root(){return this.ct?this.ct.root:this.ot.root||null}get rootMargin(){return this.ct?this.ct.rootMargin:this.ot.rootMargin}get thresholds(){return this.ct?this.ct.thresholds:[].concat(this.ot.threshold||0)}disconnect(){this.ct?this.ct.disconnect():this.ut.length=0}takeRecords(){return this.ct?this.ct.takeRecords():[]}observe(t){this.ct?this.ct.observe(t):-1==this.ut.indexOf(t)&&this.ut.push(t)}unobserve(t){if(this.ct)this.ct.unobserve(t);else{const i=this.ut.indexOf(t);-1!=i&&this.ut.splice(i,1)}}lt(t){const i=new t(this.it,this.ot);this.ct=i;for(const t of this.ut)i.observe(t);this.ut.length=0}};Zt._upgraders=[];var{hasOwnProperty:ti}=Object.prototype;function ii(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ei,si=class t{constructor(i){this.it=i,this.ut=[],this.ct=null,t._upgraders.push(this.lt.bind(this))}disconnect(){this.ct?this.ct.disconnect():this.ut.length=0}observe(t){this.ct?this.ct.observe(t):-1==this.ut.indexOf(t)&&this.ut.push(t)}unobserve(t){if(this.ct)this.ct.unobserve(t);else{const i=this.ut.indexOf(t);-1!=i&&this.ut.splice(i,1)}}lt(t){const i=new t(this.it);this.ct=i;for(const t of this.ut)i.observe(t);this.ut.length=0}};si._upgraders=[],self.document&&(Jt(ei=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Zt,void(t.IntersectionObserver._stub=Zt);const i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(e,s){var n;return 9===(null==s||null===(n=s.root)||void 0===n?void 0:n.nodeType)?new i(e,s):new t(e,s)}}(t.IntersectionObserver,Zt),t.IntersectionObserver._stub=Zt,t.IntersectionObserver._native=i}(ei),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ei),function(t){ii(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=si,t.ResizeObserver._stub=si)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:i}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:e}))}(self));var ni="cls",ri="clstu",oi="cls-1",hi="pc",li="inp",ai=["amp-mustache"],ui=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function ci(t){if(!t)return null;const i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),e=i?i[2]:void 0,s=i?i[3]:void 0;return e&&s?{extensionId:e,extensionVersion:s}:null}function di(t,i,e){const s=t.document.createElement("script");s.async=!0,pi(i)?e="":s.setAttribute(ai.indexOf(i)>=0?"custom-template":"custom-element",i),s.setAttribute("data-script",i),s.setAttribute("i-amphtml-inserted",""),s.setAttribute("type","module"),Kt(t.document,s),s.setAttribute("crossorigin","anonymous");const n=function(t,i,e,s){return`${it}/rtv/${at().rtvVersion}/v0/${i}${e?"-"+e:""}.mjs`}(t.location,i,e);let r={createScriptURL:function(t){return ui.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(r=self.trustedTypes.createPolicy("extension-script#createExtensionScript",r)),s.src=r.createScriptURL(n),s}function fi(t,i,e,s,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),o=t.document.head.querySelectorAll(`script[src*="/${i}-"]${r}`),h=[];for(let t=0;t<o.length;t++){const n=o[t],r=ci(n.src);if(!r)continue;const{extensionId:l,extensionVersion:a}=r;l==i&&(pi(i)||a==e||"latest"==a&&s)&&h.push(n)}return h}function pi(t){return t.startsWith("_")}function mi(t,i,e,s){Ii(t=Ei(t),t,i,e),s&&wi(t,i)}function gi(t,i,e,s){const n=Ri(t),r=Mi(n);Ii(r,n,i,e),s&&wi(r,i)}function _i(t,i){return wi(t=Ei(t),i)}function Ai(t,i){return Ci(t=Ei(t),i)?wi(t,i):null}function vi(t,i){return wi(Mi(Ri(t)),i)}function Pi(t,i){const e=Mi(Ri(t));return Ci(e,i)?wi(e,i):null}function yi(t,i){return xi(Mi(t),i)}function bi(t,i){return Vi(Mi(t),i)}function Ei(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Ti(t,i){const e=(t.ownerDocument||t).defaultView,s=i||Ei(e);if(e&&e!=s&&Ei(e)==s)try{return e.frameElement}catch(t){}return null}function Ri(t){return t.nodeType?function(t){return _i(t,"ampdoc")}(Mt(t)).getAmpDoc(t):t}function Mi(t){const i=Ri(t);return i.isSingleDoc()?i.win:i}function wi(t,i){Tt(Ci(t,i));const e=Si(t)[i];return e.obj||(Tt(e.ctor),Tt(e.context),e.obj=new e.ctor(e.context),Tt(e.obj),e.context=null,e.resolve&&e.resolve(e.obj)),e.obj}function Ii(t,i,e,s,n,r){const o=Si(t);let h=o[e];h||(h=o[e]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&h.ctor||(h.ctor=s,h.context=i,h.sharedInstance=r||!1,h.resolve&&wi(t,e))}function xi(t,i){const e=Vi(t,i);if(e)return e;const s=Si(t);return s[i]=Li(),s[i].promise}function Vi(t,i){const e=Si(t)[i];return e?e.promise?e.promise:(wi(t,i),e.promise=Promise.resolve(e.obj)):null}function Si(t){let i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function Oi(t){return"function"==typeof t.dispose}function ki(t,i){if(Oi(i))try{(function(t){return Tt(Oi(t)),t})(i).dispose()}catch(i){Et().error("SERVICE","failed to dispose service",t,i)}}function Ci(t,i){const e=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!e||!e.ctor)}function Li(){const t=new n,{promise:i,reject:e,resolve:s}=t;return i.catch((()=>{})),{obj:null,promise:i,resolve:s,reject:e,context:null,ctor:null}}function Ni(t,i,e,s){return Di(t,i,e,s).then((t=>function(t,i,e){return Rt(t,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.",i,e,e,e)}(t,i,e)))}function Di(t,i,e,s){const n=bi(t,i);if(n)return n;const r=Ri(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(e);return t?_i(r.win,"extensions").waitForExtension(e,t):null})).then((e=>e?s?bi(t,i):yi(t,i):null))}var Ui,$i=t=>Di(t,"access","amp-access"),Fi=t=>Di(t,"subscriptions","amp-subscriptions"),zi=t=>Pi(t,"action"),Hi=t=>Ni(t,"activity","amp-analytics"),Bi=t=>Ri(t),ji=t=>_i(t,"ampdoc"),Gi=t=>function(t,i,e){const s=Pi(t,i);return s?Promise.resolve(s):Di(t,i,"amp-bind")}(t,"bind"),qi=t=>yi(t,"cid"),Wi=t=>vi(t,"documentInfo").get(),Ki=t=>_i(t,"extensions"),Yi=t=>vi(t,"history"),Qi=t=>vi(t,"mutator"),Xi=t=>_i(t,"performance"),Ji=t=>_i(t,"platform"),Zi=t=>_i(t,"preconnect"),te=t=>vi(t,"resources"),ie=t=>function(t,i){return wi(t,"timer")}(t),ee=t=>Pi(t,"url-replace"),se=t=>Di(t,"geo","amp-geo",!0),ne=t=>Pi(t,"url"),re=t=>vi(t,"viewer"),oe=t=>_i(t,"vsync"),he=t=>vi(t,"viewport"),le="prerender",ae="preview",ue="visible",ce="hidden",de="paused",fe="inactive",pe=class{constructor(){this._n=null}add(t){return this._n||(this._n=[]),this._n.push(t),()=>{this.remove(t)}}remove(t){this._n&&E(this._n,t)}removeAll(){this._n&&(this._n.length=0)}fire(t){if(this._n)for(const i of this._n.slice())i(t)}getHandlerCount(){var t,i;return null!==(t=null===(i=this._n)||void 0===i?void 0:i.length)&&void 0!==t?t:0}},me=class{constructor(){this.Sn=p(),this.ti=null}get(t){const i=this.Sn[t];return null==i?null:i}whenSignal(t){var i;let e=null===(i=this.ti)||void 0===i?void 0:i[t];if(!e){const i=this.Sn[t];e=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new n,this.ti||(this.ti=p()),this.ti[t]=e}return e.promise}signal(t,i){var e;if(null!=this.Sn[t])return;const s=null!=i?i:Date.now();this.Sn[t]=s;const n=null===(e=this.ti)||void 0===e?void 0:e[t];null!=n&&n.resolve&&(n.resolve(s),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,i){var e;if(null!=this.Sn[t])return;this.Sn[t]=i;const s=null===(e=this.ti)||void 0===e?void 0:e[t];null!=s&&s.reject&&(s.reject(i),s.promise.catch((()=>{})),s.resolve=void 0,s.reject=void 0)}reset(t){var i;this.Sn[t]&&delete this.Sn[t];const e=null===(i=this.ti)||void 0===i?void 0:i[t];e&&!e.resolve&&delete this.ti[t]}},ge="building",_e="mounting",Ae="loading",ve="complete",Pe="error";function ye(t){return t.readyState!=Ae&&"uninitialized"!=t.readyState}function be(t){return t.readyState==ve}function Ee(t,i){Te(t,ye,i)}function Te(t,i,e){let s=i(t);if(s)e(t);else{const n=()=>{i(t)&&(s||(s=!0,e(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function Re(t){return new Promise((i=>{Ee(t,i)}))}function Me(t){return new Promise((i=>{Te(t,be,i)}))}var we=["Webkit","webkit","Moz","moz","ms","O","o"],Ie={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function xe(t){const i=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return we.some((t=>i.startsWith(t+"-")))?`-${i}`:i}function Ve(t,i,e){if(i.startsWith("--"))return i;Ui||(Ui=p());let s=Ui[i];if(!s||e){if(s=i,void 0===t[i]){const e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),n=function(t,i){for(let e=0;e<we.length;e++){const s=we[e]+i;if(void 0!==t[s])return s}return""}(t,e);void 0!==t[n]&&(s=n)}e||(Ui[i]=s)}return s}function Se(t,i){const{style:e}=t;for(const t in i)e.setProperty(xe(Ve(e,t)),String(i[t]),"important")}function Oe(t,i,e,s,n){const r=Ve(t.style,i,n);if(!r)return;const o=s?e+s:e;t.style.setProperty(xe(r),o)}function ke(t,i){for(const e in i)Oe(t,e,i[e])}function Ce(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Le(t){return`${t}px`}function Ne(t,i){return"number"==typeof t?i(t):t}function De(t,i){return t.getComputedStyle(i)||Ie}function Ue(t,i){for(let e=0;e<i.length;e++)Oe(t,i[e],null)}function $e(t){const i=t[Ve(t,"visibilityState",!0)];if(i)return i;const e=Ve(t,"hidden",!0);return e in t&&t[e]?ce:ue}function Fe(t,i){if(!t.addEventListener)return;const e=He(t);e&&t.addEventListener(e,i)}function ze(t,i){if(!t.removeEventListener)return;const e=He(t);e&&t.removeEventListener(e,i)}function He(t){const i=Ve(t,"hidden",!0),e=i.indexOf("Hidden");return-1!=e?i.substring(0,e)+"Visibilitychange":"visibilitychange"}var Be=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},je="__AMP__",Ge="-ampdoc-ext-known",qe="-ampdoc-first-visible",We="-ampdoc-next-visible",Ke="-ampdoc-first-previewed",Ye=class{constructor(t,i,e){this.win=t,this.ii=p(),this.si=i,this.ei=e&&e.signals||new me,this.ni=e&&e.params||p(),this.ri=null,this.hi={};const s=this.ni.visibilityState;var n;Tt(!s||"prerender"===(n=s)||"preview"===n||"visible"===n||"hidden"===n||"paused"===n||"inactive"===n),this.oi=e&&e.visibilityState||s||null,this.D=null,this.ui=new pe,this.li=null,this.ci=[];const r=this.ai.bind(this);this.si&&this.ci.push(this.si.onVisibilityChanged(r)),Fe(this.win.document,r),this.ci.push((()=>ze(this.win.document,r))),this.ai()}dispose(){(function(t){const i=Si(t);for(const t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const e=i[t];e.sharedInstance||(e.obj?ki(t,e.obj):e.promise&&e.promise.then((i=>ki(t,i))))}})(this),this.ci.forEach((t=>t()))}isSingleDoc(){return Tt(null)}getParent(){return this.si}signals(){return this.ei}getParam(t){const i=this.ni[t];return null==i?null:i}getMeta(){return this.ri||(this.ri=p(),this.win.document.head.querySelectorAll("meta[name]").forEach((t=>{const i=t.getAttribute("name"),e=t.getAttribute("content");i&&null!==e&&void 0===this.ri[i]&&(this.ri[i]=e)}))),p(this.ri)}getMetaByName(t){if(!t)return null;const i=this.getMeta()[t];return void 0!==i?i:null}setMetaByName(t,i){Tt(null)}declaresExtension(t,i){const e=this.hi[t];return!(!e||i&&e!==i)}declareExtension(t,i){Tt(!this.hi[t]||this.hi[t]===i),this.hi[t]=i}getExtensionVersion(t){return this.hi[t]||null}setExtensionsKnown(){this.ei.signal(Ge)}whenExtensionsKnown(){return this.ei.whenSignal(Ge)}getRootNode(){return Tt(null)}getHeadNode(){}isBodyAvailable(){return Tt(!1)}getBody(){return Tt(null)}waitForBodyOpen(){return Tt(null)}isReady(){return Tt(null)}whenReady(){return Tt(null)}getUrl(){return Tt(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.oi!=t&&(this.oi=t,this.ai())}ai(){const t=$e(this.win.document);let i,e=ue;for(let t=this.si;t;t=t.getParent())if(t.getVisibilityState()!=ue){e=t.getVisibilityState();break}const s=this.oi||ue;if(i=s==ue&&e==ue&&t==ue?ue:t==ce&&s==de?t:s==de||s==fe?s:e==de||e==fe?e:s==ae||t==ae||e==ae?ae:s==le||t==le||e==le?le:ce,this.D!=i){if(i==ue){var n;const{performance:t}=this.win;let i=Math.floor(null!==(n=t.timeOrigin)&&void 0!==n?n:t.timing.navigationStart);null!=this.D&&(i+=Math.floor(t.now())),this.li=i,this.ei.signal(qe,i),this.ei.signal(We,i)}else this.ei.reset(We);i==ae&&this.ei.signal(Ke),this.D=i,this.ui.fire()}}whenFirstPreviewedOrVisible(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])}whenFirstPreviewed(){return this.ei.whenSignal(Ke).then((()=>{}))}whenFirstVisible(){return this.ei.whenSignal(qe).then((()=>{}))}whenNextVisible(){return this.ei.whenSignal(We).then((()=>{}))}getFirstVisibleTime(){return this.ei.get(qe)}getLastVisibleTime(){return this.li}getVisibilityState(){return Tt(this.D)}isPreview(){return this.D==ae}isVisible(){return this.D==ue}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.ui.add(t)}registerSingleton(t){return!this.ii[t]&&(this.ii[t]=!0,!0)}},Qe=class extends Ye{constructor(t,i){super(t,null,i),this.di=this.win.document.body?Promise.resolve(this.win.document.body):Dt(this.win.document).then((()=>this.getBody())),this.fi=Re(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return Be.getLocation(this.win).href}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.di}isReady(){return ye(this.win.document)}whenReady(){return this.fi}},Xe=class extends Ye{constructor(t,i,e,s){super(t,null,s),this.pi=i,this.mi=e,this._i=null;const r=new n;this.di=r.promise,this.Ai=r.resolve,this.gi=!1;const o=new n;this.fi=o.promise,this.Pi=o.resolve}isSingleDoc(){return!1}getRootNode(){return this.mi}getUrl(){return this.pi}getHeadNode(){return this.mi}isBodyAvailable(){return!!this._i}getBody(){return this._i}setBody(t){Tt(!this._i),this._i=t,this.Ai(t),this.Ai=void 0}waitForBodyOpen(){return this.di}isReady(){return this.gi}setReady(){Tt(!this.gi),this.gi=!0,this.Pi(),this.Pi=void 0}whenReady(){return this.fi}getMeta(){return p(this.ri)}setMetaByName(t,i){Tt(t),this.ri||(this.ri=p()),this.ri[t]=i}},Je=class extends Ye{constructor(t,i,e,s){super(t,e,s),this.pi=i,this.di=this.win.document.body?Promise.resolve(this.win.document.body):Dt(this.win.document).then((()=>this.getBody())),this.gi=!1;const r=new n;this.fi=r.promise,this.Pi=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.pi}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.di}isReady(){return this.gi}whenReady(){return this.fi}setReady(){Tt(!this.gi),this.gi=!0,this.Pi(),this.Pi=void 0}};function Ze(t,i){const e=p();return i?Object.assign(e,i):(t.name&&0==t.name.indexOf(je)&&Object.assign(e,W(t.name.substring(je.length))),t.location&&t.location.hash&&Object.assign(e,W(t.location.hash))),e}var ts="nodisplay",is="fixed",es="fixed-height",ss="responsive",ns="container",rs="fill",os="flex-item",hs="fluid",ls="intrinsic",as=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function us(t){if("nodisplay"===(i=t)||"fixed"===i||"fixed-height"===i||"responsive"===i||"container"===i||"fill"===i||"flex-item"===i||"fluid"===i||"intrinsic"===i)return t;var i}function cs(t){return"i-amphtml-layout-"+t}function ds(t){return t==is||t==es||t==ss||t==rs||t==os||t==hs||t==ls}function fs(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function ps(t){!function(t){D(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);const i=/[a-z]+/i.exec(null!=t?t:"");return D(i,"Failed to read units from %s",t),i[0]}function ms(t){const i=parseFloat(t);return M(i)?i:void 0}function gs(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function _s(t,i,e,s){const n=y(t);for(const t of n){const n=i.getAttribute(t);null!==n?e.setAttribute(t,n):s&&e.removeAttribute(t)}}var As,vs="amp:attached",Ps="amp:load-start",ys="amp:load-end",bs="ready-upgrade",Es="upgraded",Ts="built",Rs="mounted",Ms="load-start",ws="render-start",Is="load-end",xs="unload";function Vs(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function Ss(t,i){return i.split(",").map((i=>{if(0==(i=i.replace(/\s+/g," ").trim()).length)return;let e,s,n;if(")"==i.charAt(i.length-1)){let t=1;for(n=i.length-2;n>=0;n--){const e=i.charAt(n);if("("==e?t--:")"==e&&t++,0==t)break}const e=n-1;if(n>0)for(n--;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(n>=e)return null}else for(n=i.length-2;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return n>=0?(e=i.substring(0,n+1).trim(),s=i.substring(n+1).trim()):(s=i,e=void 0),s?{query:e?t.matchMedia(e):null,value:s}:null})).filter(Boolean)}function Os(t,i,e){for(let s=0;s<t.length;s++){const{query:n}=t[s];n&&(void 0!==n.onchange?n.onchange=e?i:null:e?n.addListener(i):n.removeListener(i))}}function ks(t){const i=t.ownerDocument||t;return As&&As.ownerDocument===i||(As=i.createElement("div")),Cs}function Cs(t){return function(t,i){if(k(1===i.length),k(Array.isArray(i)||m(i,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){const e=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=e.createHTML("ignored")}else t.innerHTML=i[0];const e=t.firstElementChild;return k(e),k(!e.nextElementSibling),t.removeChild(e),e}(As,t)}var Ls=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],Ns={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Ds(t){const i=t.getAttribute("layout"),e=t.getAttribute("width"),s=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),o=i?us(i):null;D(void 0!==o,'Invalid "layout" value: %s, %s',i,t);const h=e&&"auto"!=e?fs(e):e;D(void 0!==h,'Invalid "width" value: %s, %s',e,t);const l=s&&"fluid"!=s?fs(s):s;let a,u,c;if(D(void 0!==l,'Invalid "height" value: %s, %s',s,t),o&&o!=is&&o!=es||h&&l||(d=(d=t.tagName).toUpperCase(),void 0===Ns[d]))a=h,u=l;else{const i=function(t){const i=t.tagName.toUpperCase();if(k(void 0!==Ns[i]),!Ns[i]){const e=t.ownerDocument,s=i.replace(/^AMP\-/,""),n=e.createElement(s);n.controls=!0,ke(n,{position:"absolute",visibility:"hidden"}),e.body.appendChild(n),Ns[i]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},e.body.removeChild(n)}return Ns[i]}(t);a=h||o==es?h:i.width,u=l||i.height}var d;return c=o||(a||u?"fluid"==u?hs:!u||a&&"auto"!=a?u&&a&&(n||r)?ss:is:es:ns),c!=is&&c!=es&&c!=ss&&c!=ls||D(u,'The "height" attribute is missing: %s',t),c==es&&D(!a||"auto"==a,'The "width" attribute must be missing or "auto": %s',t),c!=is&&c!=ss&&c!=ls||D(a&&"auto"!=a,'The "width" attribute must be present and not "auto": %s',t),c==ss||c==ls?D(ps(a)==ps(u),'Length units should be the same for "width" and "height": %s, %s, %s',e,s,t):D(null===r,'"heights" attribute must be missing: %s',t),{layout:c,width:a,height:u}}var Us,$s="amp-experiment-toggles",Fs="__AMP__EXPERIMENT_TOGGLES";function zs(t,i){return!!Bs(t)[i]}function Hs(t,i,e,s){const n=zs(t,i),r=null!=e?e:!n;if(r!=n&&(Bs(t)[i]=r,!s)){const e=js(t);e[i]=r,function(t,i){const e=[];for(const t in i)e.push((!1===i[t]?"-":"")+t);try{var s;null===(s=t.localStorage)||void 0===s||s.setItem($s,e.join(","))}catch(t){yt().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,e)}return r}function Bs(t){var i,e,s,n,r;if(t[Fs])return t[Fs];t[Fs]=p();const o=t[Fs];k(o);const h=A(A({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(e=t.AMP_EXP)&&void 0!==e?e:U((null===(s=t.__AMP_EXP)||void 0===s?void 0:s.textContent)||"{}"));for(const t in h){const i=h[t];"number"==typeof i&&i>=0&&i<=1&&(o[t]=Math.random()<i)}const l=null===(n=t.AMP_CONFIG)||void 0===n?void 0:n["allow-doc-opt-in"];if(P(l)&&l.length){const i=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(i){var a;const t=(null===(a=i.getAttribute("content"))||void 0===a?void 0:a.split(","))||[];for(const i of t)l.includes(i)&&(o[i]=!0)}}Object.assign(o,js(t));const u=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-url-opt-in"];if(P(u)&&u.length){const i=W(t.location.originalHash||t.location.hash);for(const t of u){const e=i[`e-${t}`];"1"==e&&(o[t]=!0),"0"==e&&(o[t]=!1)}}return o}function js(t){var i;let e="";try{var s;"localStorage"in t&&(e=null!==(s=t.localStorage.getItem($s))&&void 0!==s?s:"")}catch(t){}const n=(null===(i=e)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],r=p();for(const t of n)t&&("-"==t[0]?r[t.substr(1)]=!1:r[t]=!0);return r}function Gs(t,i,e,s){let n=t,r=e,o=t=>{try{return r(t)}catch(t){var i,e;throw null===(i=(e=self).__AMP_REPORT_ERROR)||void 0===i||i.call(e,t),t}};const h=function(){if(void 0!==Us)return Us;Us=!1;try{const t={get capture(){return Us=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Us}(),l=!(null==s||!s.capture);return n.addEventListener(i,o,h?s:l),()=>{null==n||n.removeEventListener(i,o,h?s:l),r=null,n=null,o=null}}var qs="Failed to load:";function Ws(t,i,e,s){const n={detail:e};return Object.assign(n,s),new t.CustomEvent(i,n)}function Ks(t,i,e,s){return Gs(t,i,e,s)}function Ys(t){return t.data}function Qs(t,i,e,s){let n=e;const r=Gs(t,i,(t=>{try{n(t)}finally{n=null,r()}}),s);return r}function Xs(t){let i,e;if(function(t){return!!(t.complete||"complete"==t.readyState||Js(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const s=Js(t);return s&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(i=s?Qs(t,"loadedmetadata",n,{capture:!0}):Qs(t,"load",n),!t.tagName)return;let o=t;if(s&&!t.hasAttribute("src")&&(o=Ot(t,(t=>"SOURCE"===t.tagName)),!o))return r(new Error("Media has no source."));e=Qs(o,"error",r)})).then((()=>(e&&e(),t)),(()=>{i&&i(),function(t){Js(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let i=t;throw i&&i.src&&(i=i.src),yt().createError(qs,i)}(t)}))}function Js(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Zs={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function tn(t){const i=t.document;return Tt(i.body),Object.keys(Zs).filter((t=>i.querySelector(Zs[t])))}function en(t,i,e,s,n){const r=t.getHeadNode(),o=function(t,i,e,s){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=p());const r=!e&&s&&"amp-custom"!=s&&"amp-keyframes"!=s,o=e?"amp-runtime":r?`amp-extension=${s}`:null;if(o){const e=sn(t,n,o);if(e)return"STYLE"==e.tagName&&e.textContent!==i&&(e.textContent=i),e}const h=(t.ownerDocument||t).createElement("style");h.textContent=i;let l=null;return e?h.setAttribute("amp-runtime",""):r?(h.setAttribute("amp-extension",s||""),l=sn(t,n,"amp-runtime")):(s&&h.setAttribute(s,""),l=t.lastChild),function(t,i,e=null){if(!e)return void function(t,i){t.insertBefore(i,t.firstChild)}(t,i);const s=e.nextSibling;t.insertBefore(i,s)}(t,h,l),o&&(n[o]=h),h}(r,function(t,i){const e=t.__AMP_CSS_TR;return e?e(i):i}(r,i),s||!1,n||null);if(e){const i=t.getRootNode();if(hn(i,o))return e(o),o;const s=setInterval((()=>{hn(i,o)&&(clearInterval(s),e(o))}),4)}return o}function sn(t,i,e){if(i[e])return i[e];const s=t.querySelector(`style[${e}], link[${e}]`);return s?(i[e]=s,s):null}var nn=!1;function rn(t){Tt(t.defaultView),nn||(nn=!0,on(t))}function on(t){ke(t.body,{opacity:1,visibility:"visible","animation":"none"})}function hn(t,i){const e=t.styleSheets;for(let t=0;t<e.length;t++)if(e[t].ownerNode==i)return!0;return!1}var ln,an=new Set(["c","v","a","ad"]),un="__amp_source_origin",cn=t=>"string"==typeof t?dn(t):t;function dn(t,i){return ln||(ln=self.document.createElement("a")),fn(ln,t)}function fn(t,i,e){return t.href="",new URL(i,t.href)}function pn(t,i,e){if(!i)return t;const s=t.split("#",2),n=s[0].split("?",2);let r=n[0]+(n[1]?e?`?${i}&${n[1]}`:`?${n[1]}&${i}`:`?${i}`);return r+=s[1]?`#${s[1]}`:"",r}function mn(t,i){return`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}function gn(t,i){return pn(t,_n(i))}function _n(t){const i=[];for(const e in t){let s=t[e];if(null!=s){s=y(s);for(let t=0;t<s.length;t++)i.push(mn(e,s[t]))}}return i.join("&")}function An(t){return"https:"==(t=cn(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||function(t,i){const e=t.length-i.length;return e>=0&&t.indexOf(i,e)==e}(t.hostname,".localhost")}function vn(t,i,e="source"){return Rt(null!=t,"%s %s must be available",i,e),Rt(An(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',i,e,t),t}function Pn(t){const i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function yn(t){return Q.test(cn(t).origin)}function bn(t){return!(t&&j.includes(cn(t).protocol))}function En(t){const{hash:i,origin:e,pathname:s,search:n}=dn(t);return e+s+Tn(n)+i}function Tn(t){return function(t,i){if(!t||"?"==t)return"";const e=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),s=t.replace(e,"").replace(/^[?&]/,"");return s?"?"+s:""}(t)}function Rn(t){if(!yn(t=cn(t)))return t.href;const i=t.pathname.split("/"),e=i[1];Rt(an.has(e),"Unknown path prefix in url %s",t.href);const s=i[2],n="s"==s?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(s);return Rt(n.indexOf(".")>0,"Expected a . in origin %s",n),i.splice(1,"s"==s?3:2),n+i.join("/")+Tn(t.search)+(t.hash||"")}function Mn(t){return dn(Rn(t)).origin}function wn(t,i){return i=cn(i),new URL(t,i.href).toString()}function In(t,i){return xn(i),function(t,i,e,s){return pn(t,mn("__amp_source_origin",e),void 0)}(i,0,Mn(t.location.href))}function xn(t){const i=W(dn(t).search);Rt(!(un in i),"Source origin is not allowed in %s",t)}var Vn="CANCELLED",Sn="BLOCK_BY_CONSENT",On=self.__AMP_ERRORS||[];self.__AMP_ERRORS=On;var kn=function(t){return(kn=function(t){const i=function(t){let i=0;return()=>{let t=Math.pow(1.5,i++);return t+=function(t,i){let e=t*(i=i||.3)*Math.random();return Math.random()>.5&&(e*=-1),e}(t),1e3*t}}();return t=>setTimeout(t,i())}())(t)};function Cn(t,i){try{let e;if(t)if(void 0!==t.message)t=o(t),e=!0;else{const i=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(i))).origError=i}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){const i=function(t,i){for(let i=0;i<t.length;i++)if(null==(e=t[i])?void 0:e.tagName)return i;var e;return-1}(t.messageArray);i>-1&&(t.associatedElement=t.messageArray[i])}const s=i||t.associatedElement;if(s&&s.classList&&s.classList.add("i-amphtml-error"),self.console&&(V(t.message)||!t.expected)){const i=console.error||console.log;t.messageArray?i.apply(console,t.messageArray):s?i.call(console,t.message,s):i.call(console,t.message)}s&&s.dispatchCustomEventForTesting&&s.dispatchCustomEventForTesting("amp:error",t.message),Dn.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Ln(){return new Error(Vn)}function Nn(t){return!!t&&("string"==typeof t?t.startsWith(Sn):"string"==typeof t.message&&t.message.startsWith(Sn))}function Dn(t,i,e,n,r){!this||!this.document||r&&r.expected||rn(this.document);let o=!1;try{o=function(t){if(!t.document)return!1;const i=t.document.querySelectorAll("script[src]");for(let t=0;t<i.length;t++)if(!yn(i[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(o&&Math.random()<.01)return;const h=function(t,i,e,s,n,r){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,n);let o=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Vn)return;const h=!(self&&self.window),l=Math.random();if((function(t){return-1!=t.indexOf(qs)}(t)||"Script error."==t||h)&&(o=!0,l<1e-4))return;const a=V(t);if(a&&l<.01)return;const u=Object.create(null);u.v=at().rtvVersion,u.noAmp=r?"1":"0",u.m=t.replace(w,""),u.a=a?"1":"0",u.ex=o?"1":"0",u.dw=h?"1":"0";let c="1p";var d,f;if(c="esm",u.esm="1",u.rt="esm",u.cdn=it,u.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",u.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(u.or=self.location.ancestorOrigins[0]),self.viewerState&&(u.vs=self.viewerState),self.parent&&self.parent!=self&&(u.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),i=self.AMP.viewer.maybeGetMessagingOrigin();t&&(u.rvu=t),i&&(u.mso=i)}const p=[],m=self[Fs]||null;for(const t in m){const i=m[t];p.push(`${t}=${i?"1":"0"}`)}var g,_,A;return u.exps=p.join(","),n?(u.el=(null===(g=n.associatedElement)||void 0===g?void 0:g.tagName)||"u",n.args&&(u.args=JSON.stringify(n.args)),a||n.ignoreStack||!n.stack||(u.s=n.stack),n.message&&(n.message+=" _reported_")):(u.f=i||"",u.l=e||"",u.c=s||""),u.r=self.document?self.document.referrer:"",u.ae=On.join(","),u.fr=self.location.originalHash||self.location.hash,"production"===u.bt&&(u.pt="1"),A=t,(_=On).length>=25&&_.splice(0,_.length-25+1),_.push(A),u}(t,i,e,n,r,o);h&&kn((()=>{try{return function(t,i){return i.pt&&Math.random()<.9?s():function(t,i){const e=ji(t);if(!e.isSingleDoc())return Promise.resolve(!1);const s=e.getSingleDoc();if(!s.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=re(s);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(e=i).m,"a":e.a,"s":e.s,"el":e.el,"ex":e.ex,"v":e.v,"pt":e.pt}),!0);var e})):Promise.resolve(!1)}(t,i).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?nt:st,!0),t.send(JSON.stringify(i))}}))}(this,h).catch((()=>{}))}catch(t){}}))}var Un="Resource",$n=class t{static forElement(i){return Tt(t.forElementOptional(i))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(i,e){Tt(e.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(e),i.__AMP__OWNER=e;const s=i.getElementsByClassName("i-amphtml-element");for(let i=0;i<s.length;i++){const e=s[i];t.forElementOptional(e)&&t.forElementOptional(e).updateOwner(void 0)}}constructor(t,i,e){i.__AMP__RESOURCE=this,this.vi=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.Ei=e,this.Ti=i.hasAttribute("placeholder"),this.Ri=!1,this.Ii=void 0,this.Mi=i.isBuilt()?1:0,0==this.Mi&&i.isBuilding()&&this.build(),this.yi=-1,this.wi=0,this.bi=null,this.Vi=null,this.Si=!1,this.xi=Yt(-1e4,-1e4,0,0),this.Oi=null,this.Ci=!1,this.ki=null,this.Ni=null,this.Di=void 0;const s=new n;this.Li=s.promise,this.Ui=s.resolve,this.$i=!1}getId(){return this.vi}updateOwner(t){this.Ii=t}getOwner(){if(void 0===this.Ii){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Ii=t.__AMP__OWNER;break}void 0===this.Ii&&(this.Ii=null)}return this.Ii}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.yi?this.yi:this.element.getLayoutPriority()}updateLayoutPriority(t){this.yi=t}getState(){return this.Mi}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.Ri}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.Ri||!this.element.isUpgraded()?null:(this.Ri=!0,this.element.buildInternal().then((()=>{this.Ri=!1,this.Mi=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Ri=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){Nn(t)||Et().error(Un,"failed to build:",this.debugid,t)}changeSize(t,i,e){this.element.applySize(t,i,e),this.requestMeasure()}overflowCallback(t,i,e,s){t&&(this.Di={height:i,width:e,margins:s}),this.element.overflowCallback(t,i,e,s)}resetPendingChangeSize(){this.Di=void 0}getPendingChangeSize(){return this.Di}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.Ti&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-")&&!("__AMP__RESOURCE"in this.element.parentElement))return;if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return void(this.Mi=1);this.Ci=!1;const t=this.xi;this.Fi();const i=this.xi,e=(n=i,!((s=t).width==n.width&&s.height===n.height));var s,n;(1==this.Mi||t.top!=i.top||e)&&this.element.isUpgraded()&&(1==this.Mi?this.Mi=2:4!=this.Mi&&5!=this.Mi||!this.element.isRelayoutNeeded()||(this.Mi=2)),this.hasBeenMeasured()||(this.Oi=i),this.element.updateLayoutBox(i,e)}ensureMeasured(){return this.hasBeenMeasured()?s():oe(this.hostWin).measure((()=>this.measure()))}Fi(){const t=he(this.element);this.xi=t.getLayoutRect(this.element);let i=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:e}=this.Ei.getAmpdoc(),{body:s}=e.document;for(let n=this.element;n&&n!=s;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==De(e,n).position){i=!0;break}}}this.Si=i,i&&(this.xi=Xt(this.xi,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){Ce(this.element,!1),this.xi=Yt(this.xi.left,this.xi.top,0,0),this.Si=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){Ce(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.Ci}hasBeenMeasured(){return!!this.Oi}requestMeasure(){this.Ci=!0}getLayoutSize(){return function(t){const{height:i,width:e}=t;return{width:e,height:i}}(this.xi)}getLayoutBox(){if(!this.Si)return this.xi;const t=he(this.element);return Xt(this.xi,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.Oi||this.xi}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==hs,i=this.getLayoutBox(),e=i.height>0&&i.width>0;return t||e}isFixed(){return this.Si}overlaps(t){return e=t,(i=this.getLayoutBox()).top<=e.bottom&&e.top<=i.bottom&&i.left<=e.right&&e.left<=i.right;var i,e}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(Tt(!1!==t),!this.isLayoutPending()||!0===t)return s();const i=t,e=String(i);return this.ki&&this.ki[e]?this.ki[e].promise:this.isWithinViewportRatio(i)?s():(this.ki=this.ki||{},this.ki[e]=new n,this.ki[e].promise)}Bi(){if(!this.ki)return;const t=this.getDistanceViewportRatio();for(const i in this.ki)this.isWithinViewportRatio(parseFloat(i),t)&&(this.ki[i].resolve(),delete this.ki[i])}getDistanceViewportRatio(){const t=he(this.element).getRect(),i=this.getLayoutBox(),e=this.Ei.getScrollDirection();let s=1,n=0;if(t.right<i.left||t.left>i.right)return{distance:!1};if(t.bottom<i.top)n=i.top-t.bottom,-1==e&&(s=2);else{if(!(t.top>i.bottom))return{distance:!0};n=t.top-i.bottom,1==e&&(s=2)}return{distance:n,scrollPenalty:s,viewportHeight:t.height}}isWithinViewportRatio(t,i){if("boolean"==typeof t)return t;const{distance:e,scrollPenalty:s,viewportHeight:n}=i||this.getDistanceViewportRatio();return"boolean"==typeof e?e:e<n*t/s}renderOutsideViewport(){return this.Bi(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.Mi=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.Mi=this.hasBeenMeasured()?2:1}startLayout(){if(this.Ni)return this.Ni;if(4==this.Mi)return s();if(5==this.Mi)return Promise.reject(this.Vi);if(Tt(0!=this.Mi),Tt(this.isDisplayed()),3!=this.Mi){const t=Et().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Mi);return Cn(t,this.element),Promise.reject(t)}if(this.wi>0&&!this.element.isRelayoutNeeded())return this.Mi=4,s();this.wi++,this.Mi=3,this.bi=new AbortController;const{signal:t}=this.bi,i=new Promise(((i,e)=>{oe(this.hostWin).mutate((()=>{let s;try{s=this.element.layoutCallback(t)}catch(t){e(t)}Promise.resolve(s).then(i,e)})),t.onabort=()=>e(Ln())})).then((()=>this.Hi(!0,t)),(i=>this.Hi(!1,t,i)));return this.Ni=i}Hi(t,i,e){if(this.bi=null,i.aborted){const t=Et().createError("layoutComplete race");throw t.associatedElement=this.element,Et().expectedError(Un,t),Ln()}if(this.Ui&&(this.Ui(),this.Ui=null),this.Ni=null,this.Mi=t?4:5,this.Vi=e,!t)return Promise.reject(e)}isLayoutPending(){return 4!=this.Mi&&5!=this.Mi}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Li}isInViewport(){return this.$i&&this.Bi(),this.$i}setInViewport(t){this.$i=t}unlayout(){0!=this.Mi&&1!=this.Mi&&2!=this.Mi&&(this.bi&&(this.bi.abort(),this.bi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Mi=1,this.wi=0,this.Ni=null))}getTaskId(t){return this.debugid+"#"+t}pause(){this.element.pause()}pauseOnRemove(){this.element.pause()}resume(){this.element.resume()}unload(){this.element.unmount()}disconnect(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)}},Fn="ready-scan",zn="scheduler",Hn="250% 31.25%";function Bn(t){return gi(t,zn,class{constructor(t){this.ji=t;const{win:i}=t;this.zi=new i.IntersectionObserver((t=>this.Gi(t)),{root:jt(i)?i.document:null,rootMargin:Hn}),this.qi=new Map,this.Wi=new Map,this.Ki=[],this.Yi=!1,t.whenReady().then((()=>this.Ji())),this.Qi=t.onVisibilityChanged((()=>this.Xi()))}dispose(){this.zi.disconnect(),this.Wi.clear(),this.Qi&&(this.Qi(),this.Qi=null)}scheduleAsap(t){this.Wi.set(t,{asap:!0,isIntersecting:!1}),this.Zi(t)}schedule(t){this.Wi.has(t)||(t.deferredMount()?(this.Wi.set(t,{asap:!1,isIntersecting:!1}),this.zi.observe(t),this.qi.size>0&&this.qi.forEach(((i,e)=>{qt(e,t)&&i.observe(t)}))):this.Wi.set(t,{asap:!1,isIntersecting:!0}),this.Zi(t))}unschedule(t){this.Wi.has(t)&&(this.Wi.delete(t),this.zi.unobserve(t),this.qi.size>0&&this.qi.forEach((i=>{i.unobserve(t)})),this.Ki&&(E(this.Ki,t),this.Ji()))}setContainer(t,i){if(this.qi.has(t))return;const{win:e}=this.ji,s=new e.IntersectionObserver((t=>this.Gi(t)),{root:i||t,rootMargin:Hn});this.qi.set(t,s),this.Wi.forEach((({asap:i},e)=>{!i&&qt(t,e)&&s.observe(e)}))}removeContainer(t){const i=this.qi.get(t);i&&(i.disconnect(),this.qi.delete(t))}ts(){if(this.ji.isReady()&&!this.Yi){this.Yi=!0;const{win:t}=this.ji;t.setTimeout((()=>{this.ji.signals().signal(Fn)}),50)}}Xi(){const t=this.ji.getVisibilityState();t!=ue&&t!=ce&&t!=le&&t!=ae||this.Wi.forEach(((t,i)=>this.ss(i)))}Zi(t){const i=this.Ki;i?(i.includes(t)||i.push(t),this.Ji()):this.ss(t)}Ji(){const t=this.ji.isReady(),i=this.Ki;if(i)for(let e=0;e<i.length;e++){const s=i[e];(t||Ht(s,this.ji.getRootNode()))&&(i.splice(e--,1),this.ss(s))}t&&(this.Ki=null,this.ts())}Gi(t){for(let i=0;i<t.length;i++){const{isIntersecting:e,target:s}=t[i],n=s,r=this.Wi.get(n);if(!r)continue;const o=e||r.isIntersecting;o!==r.isIntersecting&&this.Wi.set(n,{asap:r.asap,isIntersecting:o}),o&&this.ss(n)}}ss(t){const i=this.Ki,e=!(i&&i.includes(t)),{asap:s,isIntersecting:n}=this.Wi.get(t)||{asap:!1,isIntersecting:!1},r=this.ji.getVisibilityState();if(!e||!s&&!n||!(r==ue||r==ce||r==le&&t.prerenderAllowed()||r==ae&&t.previewAllowed()))return;this.unschedule(t);const{win:o}=this.ji;(s||t.getBuildPriority()<=0?o.setTimeout:o.requestIdleCallback||o.setTimeout)((()=>t.mountInternal()))}}),vi(t,zn)}var jn=class{constructor(){this.es=[]}peek(){const t=this.length;return t?this.es[t-1].item:null}enqueue(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");const e=this.ns(i);this.es.splice(e,0,{item:t,priority:i})}ns(t){let i=-1,e=0,s=this.length;for(;e<=s&&(i=Math.floor((e+s)/2),i!==this.length);)if(this.es[i].priority<t)e=i+1;else{if(!(i>0&&this.es[i-1].priority>=t))break;s=i-1}return i}forEach(t){let i=this.length;for(;i--;)t(this.es[i].item)}dequeue(){const t=this.es.pop();return t?t.item:null}get length(){return this.es.length}},Gn=/nochunking=1/.test(self.location.hash),qn=!1,Wn=s();function Kn(t,i,e){if(Gn)return void Wn.then(i);const s=(gi(n=t.documentElement||t,"chunk",Jn),vi(n,"chunk"));var n;s.runForStartup(i),e&&s.runForStartup((()=>{s.rs=!0}))}var Yn="not_run",Qn=class{constructor(t){this.state=Yn,this.hs=t}os(t){if("run"!=this.state){this.state="run";try{this.hs(t)}catch(t){throw this.us(t),t}}}ls(){return this.hs.displayName||this.hs.name}us(t){}cs(){return!1}ds(){return!1}},Xn=class extends Qn{constructor(t,i,e){super(t),this.fs=e}us(t){rn(self.document)}cs(){return this.ps()}ds(){return this.fs._s}ps(){return this.fs.ampdoc.isVisible()}},Jn=class{constructor(t){var i;this.ampdoc=t,this.i=t.win,this.As=new jn,this.gs=this.Ps.bind(this),this.vs=0,this.Es=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.Ts=!1,this.rs=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==Ys(t)&&this.Ps(null)})),this._s=!1,(i=t,yi(i,"viewer")).then((()=>{this._s=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.Rs()}))}run(t,i){const e=new Qn(t);this.Is(e,i)}runForStartup(t){const i=new Xn(t,this.i,this);this.Is(i,Number.POSITIVE_INFINITY)}Is(t,i){this.As.enqueue(t,i),this.Rs()}Ms(t){let i=this.As.peek();for(;i&&i.state!==Yn;)this.As.dequeue(),i=this.As.peek();return i&&t&&this.As.dequeue(),i}Ps(t){const i=this.Ms(!0);if(!i)return this.Ts=!1,this.vs=0,!1;let e;try{e=Date.now(),i.os(t)}finally{Wn.then().then().then().then().then().then().then().then().then((()=>{this.Ts=!1,this.vs+=Date.now()-e,this.Rs()}))}return!0}ys(t){if(!qn&&this.rs&&(this.Es?this.i.navigator.scheduling.isInputPending():this.vs>5))return this.vs=0,void this.ws();Wn.then((()=>{this.gs(t)}))}Rs(){if(this.Ts)return;const t=this.Ms();return t?t.cs()?(this.Ts=!0,void this.ys(null)):void(t.ds()&&this.i.requestIdleCallback?function(t,i,e,s){const n=Date.now();t.requestIdleCallback((function i(e){if(e.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||e.didTimeout?s(e):t.requestIdleCallback(i,{timeout:r})}else s(e)}),{timeout:2e3})}(this.i,0,0,this.gs):this.ws()):void 0}ws(){this.i.postMessage("amp-macro-task","*")}},Zn="activate",tr=class{static R1(){return!1}static deferredMount(t){return!0}static prerenderAllowed(t){return!1}static previewAllowed(t){return this.prerenderAllowed(t)}static usesLoading(t){return!1}static createLoaderLogoCallback(t){return{}}static getBuildPriority(t){return 0}static getPreconnects(t){return null}static requiresShadowDom(){return!1}constructor(t){this.element=t,this.win=Mt(t),this.actionMap_=null,this.defaultActionAlias_=null}signals(){return this.element.signals()}getDefaultActionAlias(){return this.defaultActionAlias_}getLayoutPriority(){return 0}updateLayoutPriority(t){this.element.getResources().updateLayoutPriority(this.element,t)}getLayout(){return this.element.getLayout()}getLayoutBox(){return this.element.getLayoutBox()}getLayoutSize(){return this.element.getLayoutSize()}getAmpDoc(){return this.element.getAmpDoc()}getVsync(){return oe(this.win)}getConsentPolicy(){let t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t}isLayoutSupported(t){return t==ts}isAlwaysFixed(){return!1}upgradeCallback(){return null}buildCallback(){}preconnectCallback(t){}attachedCallback(){}detachedCallback(){}setAsContainer(t){this.element.setAsContainerInternal(t)}removeAsContainer(){this.element.removeAsContainerInternal()}isBuildRenderBlocking(){return!1}createPlaceholderCallback(){return null}renderOutsideViewport(){return"inabox"==at(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(t,i){this.element.setReadyStateInternal(t,i)}mountCallback(t){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return s()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return Xs(t)}registerAction(t,i,e=2){ir(this),this.actionMap_[t]={handler:i,minTrust:e}}registerDefaultAction(t,i="activate",e=2){Tt(!this.defaultActionAlias_),this.registerAction(i,t,e),this.defaultActionAlias_=i}executeAction(t,i){let{method:e}=t;e===Zn&&(e=this.defaultActionAlias_||e),ir(this);const s=this.actionMap_[e],{tagName:n}=this.element;Rt(s,`Method not found: ${e} in ${n}`);const{handler:r,minTrust:o}=s;if(t.satisfiesTrust(o))return r(t)}forwardEvents(t,i){const e=(P(t)?t:[t]).map((t=>Ks(i,t,(i=>{Gt(this.element,t,Ys(i)||{})}))));return()=>e.forEach((t=>t()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(t){this.element.togglePlaceholder(t)}getFallback(){return this.element.getFallback()}toggleFallback(t){this.element.toggleFallback(t)}toggleLoading(t,i=!1){this.element.toggleLoading(t,i)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return he(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){Qi(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return Qi(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){Qi(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return Qi(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,i,e){return Qi(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,e)}measureElement(t){return Qi(this.getAmpDoc()).measureElement(t)}mutateElement(t,i){return this.measureMutateElement(null,t,i)}measureMutateElement(t,i,e){return Qi(this.getAmpDoc()).measureMutateElement(e||this.element,t,i)}mutateElementSkipRemeasure(t){return Qi(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){Qi(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return yt(this.element)}getApi(){return this}};function ir(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var er=class extends tr{},sr="amp-",nr="send-positions",rr="position";function or(t){try{return!!t.location.href&&(t.test||!0)}catch(t){return!1}}var hr,lr=Date.now(),ar={bubbles:!1},ur=()=>!0,cr=[],dr=new Set;function fr(t){return"placeholder"in t}function pr(t){Tt(!t.js)}var mr=new WeakMap;function gr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function _r(t,i,e){const s=gr(t);if(s[i]){if(s[i]!=e){Rt(s[i]==er,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),s[i]=e;for(let s=0;s<cr.length;s++){const n=cr[s];n.tagName.toLowerCase()==i&&n.ownerDocument.defaultView==t&&(Ar(n,e),cr.splice(s--,1))}}}else br(t,i,e)}function Ar(t,i){try{t.upgrade(i)}catch(i){Cn(i,t)}}function vr(t){(function(t){if(!t)return[];const i=t.querySelectorAll("script[custom-element],script[custom-template]"),e=[];for(let t=0;t<i.length;t++){const s=i[t],n=s.getAttribute("custom-element")||s.getAttribute("custom-template"),r=ci(s.src);n&&r&&e.push({script:s,extensionId:n,extensionVersion:r.extensionVersion})}return e})(t.getHeadNode()).forEach((({extensionId:i,extensionVersion:e,script:s})=>{t.declareExtension(i,e),s.addEventListener("error",(()=>function(t){dr.add(t||"*");for(const i of cr)null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}(i))),Pr(t.win,i)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function Pr(t,i){gr(t)[i]||br(t,i,er)}function yr(t,i,e){br(i,e,gr(t)[e]||er)}function br(t,i,e){gr(t)[i]=e;const s=function(t,i){const e=function(t,i){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const e=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends e{constructor(){super(),this.createdCallback()}createdCallback(){this.bs=!1,this.Vs=!1,this.Ss=null,this.xs=!1,this.Os=null,this.Cs=null,this.ks="upgrading",this.everAttached=!1,this.ji=null,this.Ei=null,this.Ns=ts,this.wi=0,this.Ds=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.Ls=void 0,this.layoutScheduleTime=void 0;const i=this;let e=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.Us=e===er?null:e||null,this.Us||cr.push(this),this.$s=null,this.Fs=1,this.Bs=0,this.Hs=void 0,this.js=void 0,this.ei=new me,this.Us&&this.ei.signal(bs);const s=Ai(t,"performance");this.zs=s&&s.isPerformanceTrackingOn(),this.Gs=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)}get readyState(){return this.ks}signals(){return this.ei}getAmpDoc(){return Tt(this.ji),this.ji}getResources(){return Tt(this.Ei),this.Ei}isUpgraded(){return 2==this.Fs}whenUpgraded(){return this.ei.whenSignal(Es)}upgrade(t){this.js||1==this.Fs&&(this.Us=t,this.ei.signal(bs),this.everAttached&&this.qs())}markUnresolved(){this.Us||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Bs}Ws(i,e){this.$s=i,this.Bs=t.Date.now()-e,this.Fs=2,this.setReadyStateInternal(ge),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ks(),this.dispatchCustomEventForTesting(vs),this.R1()||this.getResources().upgraded(this),this.ei.signal(Es)}Ks(){this.Ns!=ts&&this.$s&&!this.$s.isLayoutSupported(this.Ns)&&(Rt(this.getAttribute("layout"),"The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),Rt(!1,`Layout not supported: ${this.Ns}`))}getBuildPriority(){return this.Us?this.Us.getBuildPriority(this):3}getLayoutPriority(){return this.$s?this.$s.getLayoutPriority():3}getDefaultActionAlias(){return Tt(this.isUpgraded()),this.$s.getDefaultActionAlias()}isBuilding(){return!!this.Ss}isBuilt(){return this.bs}whenBuilt(){return this.ei.whenSignal(Ts)}buildInternal(){if(pr(this),Tt(this.Us),this.Ss)return this.Ss;this.setReadyStateInternal(ge);const t=this.Ys();this.Js();const i=t.then((()=>{const t=this.Qs(),i=t?null:this.Xs();if(t||i)return Di(this,"consentPolicyManager","amp-consent").then((e=>!e||(t?e.whenPolicyUnblock(t):e.whenPurposesUnblock(i)))).then((t=>{if(!t)throw new Error(Sn)}))})).then((()=>Tt(this.$s).buildCallback()));return this.Ss=i.then((()=>{if(this.bs=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.ei.signal(Ts),this.R1()?this.setReadyStateInternal(this.ks!=ge?this.ks:_e):(this.setReadyStateInternal(Ae),this.preconnect(!1)),this.Vs&&this.Pt(),this.Hs&&ie(Mt(this)).delay(this.Zs.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.ei.rejectSignal(Ts,t),this.R1()&&this.setReadyStateInternal(Pe,t),Nn(t)||Cn(t,this),t}))}build(){return this.Ss?this.Ss:this.ei.whenSignal(bs).then((()=>(this.R1()&&Bn(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.Os)return this.Os;this.Cs=this.Cs||new AbortController;const{signal:t}=this.Cs;return this.Os=this.buildInternal().then((()=>{if(Tt(this.R1()),t.aborted)return;this.setReadyStateInternal(this.ks!=_e?this.ks:this.Us.usesLoading(this)?Ae:_e),this.xs=!0;const i=this.$s.mountCallback(t);return!!i&&i.then(ur)})).then((i=>{if(this.Cs=null,t.aborted)throw Ln();this.ei.signal(Rs),this.Us.usesLoading(this)&&!i||this.setReadyStateInternal(ve)})).catch((t=>{var i;throw this.Cs=null,(i=t)&&("string"==typeof i?i.startsWith(Vn):"string"==typeof i.message&&i.message.startsWith(Vn))?this.Os=null:(this.ei.rejectSignal(Rs,t),this.setReadyStateInternal(Pe,t)),t}))}mount(){if(this.Os)return this.Os;this.Cs=this.Cs||new AbortController;const{signal:t}=this.Cs;return this.ei.whenSignal(bs).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Ln();return Bn(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Vs&&this.pause(),this.R1()?(this.Cs&&(this.Cs.abort(),this.Cs=null),Bn(this.getAmpDoc()).unschedule(this),this.xs&&this.$s.unmountCallback(),this.xs=!1,this.Os=null,this.te(),this.Vs&&this.qs(!0)):this.ie()}whenMounted(){return this.ei.whenSignal(Rs)}whenLoaded(){return this.ei.whenSignal(Is)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.Us.usesLoading(this)&&this.$s.ensureLoaded(),this.whenLoaded();const i=this.se();return i.whenBuilt().then((()=>{if(4!=i.getState()&&((3!=i.getState()||i.isMeasureRequested())&&i.measure(),i.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(i,!0,t,!0),this.whenLoaded()}))}))}setAsContainerInternal(t){Bn(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Bn(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,i){if(t!==this.ks&&(this.ks=t,this.R1()))switch(t){case Ae:return this.ei.signal(Ms),this.ei.reset(xs),this.ei.reset(Is),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(Ps);case ve:return this.ei.signal(Ms),this.ei.signal(Is),this.ei.reset(xs),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Gt(this,"load",null,ar),void this.dispatchCustomEventForTesting(ys);case Pe:return this.ei.rejectSignal(Is,i),this.toggleLoading(!1),void Gt(this,"error",i,ar)}}preconnect(t){Tt(this.isUpgraded()),t?this.$s.preconnectCallback(t):Kn(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.$s.preconnectCallback(t)}))}R1(){return!!this.Us&&this.Us.R1()}deferredMount(){return!!this.Us&&this.Us.deferredMount(this)}isAlwaysFixed(){return!!this.$s&&this.$s.isAlwaysFixed()}updateLayoutBox(t,i=!1){this.isBuilt()&&this.onMeasure(i)}onMeasure(){Tt(this.isBuilt());try{this.$s.onLayoutMeasure()}catch(t){Cn(t,this)}}Js(){var t;return void 0!==this.sizerElement||this.Ns!==ss&&this.Ns!==ls||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}ee(t){if(this.Ns!==ss)if(this.Ns!==ls);else{const i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else Oe(t,"paddingTop","0")}ne(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),i=!!this.Gs,e=this.ownerDocument.defaultView;t!=i&&e&&(t?(this.Gs=new class{constructor(t,i){this.i=t,this.it=i,this.re={},this.he=null}start(){this.he=this.re,this.re={}}resolveMatchQuery(t){return"1"===this.oe(t,Vs,"1")}resolveListQuery(t){return this.oe(t,Ss,"")}complete(){for(const t in this.he)t in this.re||Os(this.he[t],this.it,!1);this.he=null}dispose(){for(const t in this.re)Os(this.re[t],this.it,!1);this.re={}}oe(t,i,e){if(!t.trim())return e;let s=this.re[t];return s||(k(this.he),s=this.he[t]),s||(s=i(this.i,t),Os(s,this.it,!0)),this.re[t]=s,function(t){for(let i=0;i<t.length;i++){const{query:e,value:s}=t[i];if(!e||e.matches)return s}return""}(s)}}(e,(()=>this.ue())),this.ue()):this.le())}le(){this.Gs&&(this.Gs.dispose(),this.Gs=null)}ue(){const t=this.Gs;if(!t)return;t.start();const i=this.getAttribute("media")||null,e=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!e);const s=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");s&&Oe(this,"width",t.resolveListQuery(s));const n=this.Ns===ss?this.getAttribute("heights"):null;if(n){const i=this.Js();i&&Oe(i,"paddingTop",t.resolveListQuery(n))}t.complete(),this.se().requestMeasure()}applySize(t,i,e){const s=this.Js();s&&(this.sizerElement=null,this.ee(s),this.ce((()=>{s&&Ut(s)}))),void 0!==t&&Oe(this,"height",t,"px"),void 0!==i&&Oe(this,"width",i,"px"),e&&(null!=e.top&&Oe(this,"marginTop",e.top,"px"),null!=e.right&&Oe(this,"marginRight",e.right,"px"),null!=e.bottom&&Oe(this,"marginBottom",e.bottom,"px"),null!=e.left&&Oe(this,"marginLeft",e.left,"px")),this.ae()&&this.de(),Gt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===hr){const t=self.document.createElement("template");hr="content"in t}return hr}()||void 0!==this.js||(this.js=!!St(this,"template")),!this.js&&!this.Vs&&Ft(this)){if(this.Vs=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.ji){const t=Mt(this),e=ji(t).getAmpDoc(this);this.ji=e,i(e,this,this.Us)}if(this.Ei||(this.Ei=te(this.ji)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.te(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this.Pt(),this.dispatchCustomEventForTesting(vs)),this.Us&&this.R1()&&this.qs()}else{this.everAttached=!0;try{this.Ns=function(t){const i=t.getAttribute("i-amphtml-layout");if(i){const s=us(i);var e;return k(s),s!=ss&&s!=ls||!t.firstElementChild?s==ts&&Ce(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(e=t.sizerElement)||void 0===e||e.setAttribute("slot","i-amphtml-svc")),s}const{height:s,layout:n,width:r}=Ds(t);if(t.classList.add(cs(n)),ds(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==ts)Ce(t,!1);else if(n==is)ke(t,{width:L(r),height:L(s)});else if(n==es)Oe(t,"height",L(s));else if(n==ss){const i=t.ownerDocument.createElement("i-amphtml-sizer");i.setAttribute("slot","i-amphtml-svc");const e=ms(s),n=ms(r);N(e),N(n),ke(i,{paddingTop:e/n*100+"%"}),t.insertBefore(i,t.firstChild),t.sizerElement=i}else if(n==ls){const i=ks(t)(Ls),e=i.firstElementChild;C(e),e.setAttribute("src",`data:image/svg+xml;charset=utf-8,<svg height="${s}" width="${r}" xmlns="http://www.w3.org/2000/svg" version="1.1"/>`),t.insertBefore(i,t.firstChild),t.sizerElement=i}else n==rs||n==ns||(n==os?(r&&Oe(t,"width",r),s&&Oe(t,"height",s)):n==hs&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&Oe(t,"width",r),Oe(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.ne()}catch(t){Cn(t,this)}this.Us?this.qs():(dr.has("*")||dr.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}ae(){return this.classList.contains("i-amphtml-layout-awaiting-size")}de(){this.classList.remove("i-amphtml-layout-awaiting-size")}qs(t){if(this.R1()){if(!this.Os)if(Bn(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ss)this.setReadyStateInternal(this.Us&&this.Us.usesLoading(this)?Ae:_e);else if(this.setReadyStateInternal(ge),!t){const t=this.Us.getPreconnects(this);if(t&&t.length>0){const i=this.getAmpDoc();Kn(i,(()=>{const{win:e}=i;if(!e)return;const s=Zi(e);t.forEach((t=>s.url(i,t,!1)))}))}}}else this.fe()}fe(){if(this.js)return;if(1!=this.Fs)return;const i=new(Tt(this.Us))(this);this.Fs=4;const e=t.Date.now(),s=i.upgradeCallback();if(s){if("function"==typeof s.then)return s.then((t=>{this.Ws(t||i,e)})).catch((t=>{this.Fs=3,a(t)}));this.Ws(s,e)}else this.Ws(i,e)}disconnectedCallback(){this.disconnect(!1)}Pt(){this.bs&&this.$s.attachedCallback()}disconnect(t){!this.js&&this.Vs&&(!t&&Ft(this)||(t&&this.classList.remove("i-amphtml-element"),this.Vs=!1,this.getResources().remove(this),this.$s&&this.$s.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.le()))}dispatchCustomEventForTesting(t,i){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.Us&&this.Us.prerenderAllowed(this)}previewAllowed(){return!!this.Us&&this.Us.previewAllowed(this)}isBuildRenderBlocking(){return!!this.$s&&this.$s.isBuildRenderBlocking()}createPlaceholder(){return this.$s?this.$s.createPlaceholderCallback():null}createLoaderLogo(){return this.Us?this.Us.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.$s&&this.$s.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.$s&&this.$s.idleRenderOutsideViewport()}getLayoutBox(){return this.se().getLayoutBox()}getLayoutSize(){return this.se().getLayoutSize()}getOwner(){return this.se().getOwner()}getIntersectionChangeEntry(){const t=this.$s?this.$s.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),e=he(this.getAmpDoc()).getRect();return function(t,i,e){const s=function(t){let i=-1/0,e=1/0,s=-1/0,n=1/0;for(let t=0;t<arguments.length;t++){const r=arguments[t];if(r&&(i=Math.max(i,r.left),e=Math.min(e,r.left+r.width),s=Math.max(s,r.top),n=Math.min(n,r.top+r.height),e<i||n<s))return null}return e==1/0?null:Yt(i,s,e-i,n-s)}(t,i,e)||Yt(0,0,0,0);return function(t,i,e,s){let n=t,r=i;return i&&(e=Xt(e,-i.left,-i.top),n=Xt(n,-i.left,-i.top),r=Xt(r,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-lr,rootBounds:r,boundingClientRect:n,intersectionRect:e,intersectionRatio:s}}(t,e,s,function(t,i){const e=t.width*t.height,s=i.width*i.height;return 0===s?0:e/s}(s,t))}(t,i&&i.getLayoutBox(),e)}se(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.se().getId()}isRelayoutNeeded(){return!!this.$s&&this.$s.isRelayoutNeeded()}getImpl(t=!0){return(t?this.build():this.Ys()).then((()=>this.$s))}Ys(){return this.ei.whenSignal(bs).then((()=>(this.fe(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.Ns}layoutCallback(t){if(pr(this),Tt(this.isBuilt()),t.aborted)return Promise.reject(Ln());this.dispatchCustomEventForTesting(Ps);const i=0==this.wi;this.ei.reset(xs),i&&this.ei.signal(Ms),this.toggleLoading(!0);const e=r((()=>this.$s.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),e.then((()=>{if(t.aborted)throw Ln();i&&this.ei.signal(Is),this.setReadyStateInternal(ve),this.wi++,this.toggleLoading(!1),this.Ds||(this.$s.firstLayoutCompleted(),this.Ds=!0,this.dispatchCustomEventForTesting(ys))}),(e=>{if(t.aborted)throw Ln();throw i&&this.ei.rejectSignal(Is,e),this.setReadyStateInternal(Pe,e),this.wi++,this.toggleLoading(!1),e}))}pause(){this.isBuilt()&&(this.$s.pauseCallback(),!this.R1()&&this.$s.unlayoutOnPause()&&this.ie())}resume(){this.isBuilt()&&this.$s.resumeCallback()}unlayoutCallback(){if(pr(this),!this.isBuilt())return!1;this.ei.signal(xs);const t=this.$s.unlayoutCallback();return t&&this.te(),this.dispatchCustomEventForTesting("amp:unload"),t}ie(){this.se().unlayout(),this.Vs&&this.Ei&&this.Ei.schedulePass()}te(){this.wi=0,this.Ds=!1,this.ei.reset(Rs),this.ei.reset(ws),this.ei.reset(Ms),this.ei.reset(Is),this.ei.reset("ini-load")}reconstructWhenReparented(){return!!this.$s&&this.$s.reconstructWhenReparented()}collapse(){this.$s&&this.$s.collapse()}collapsedCallback(t){this.$s&&this.$s.collapsedCallback(t)}expand(){this.$s&&this.$s.expand()}mutatedAttributesCallback(t){this.$s?this.$s.mutatedAttributesCallback(t):this.R1()&&Bn(this).scheduleAsap(this)}enqueAction(t){pr(this),this.isBuilt()?this.pe(t,!1):(void 0===this.Hs&&(this.Hs=[]),Tt(this.Hs).push(t),this.build())}Zs(){if(!this.Hs)return;const t=Tt(this.Hs);this.Hs=null,t.forEach((t=>{this.pe(t,!0)}))}pe(t,i){try{this.$s.executeAction(t,i)}catch(i){a("Action execution failed:",i,t.node.tagName,t.method)}}Qs(){let t=this.getAttribute("data-block-on-consent");if(null===t){if(!function(t){let i=t.getAmpDoc().getMetaByName("amp-consent-blocking");return!!i&&(i=i.toUpperCase().replace(/\s+/g,""),i.split(",").includes(t.tagName))}(this))return null;t="default",this.setAttribute("data-block-on-consent",t)}return""==t||"default"==t?Tt(this.$s).getConsentPolicy():t}Xs(){var t;const i=this.getAttribute("data-block-on-consent-purposes")||null;return null==i||null===(t=i.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")}getPlaceholder(){return Ot(this,(t=>t.hasAttribute("placeholder")&&!fr(t)))}togglePlaceholder(t){if(pr(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(xt("placeholder"),this.querySelectorAll(wt("> [placeholder]",":scope")));for(let i=0;i<t.length;i++)fr(t[i])||t[i].classList.add("amp-hidden")}}getFallback(){return kt(this,"fallback")}toggleFallback(t){pr(this);const i=this.se().getState();if((this.R1()||!t||0!=i&&1!=i&&2!=i)&&(this.classList.toggle("amp-notsupported",t),1==t)){const t=this.getFallback();t&&(e=this.getAmpDoc(),vi(e,"owners")).scheduleLayout(this,t)}var e}renderStarted(){this.ei.signal(ws),this.togglePlaceholder(!1),this.toggleLoading(!1)}me(t){const i=this.wi>0||this.ei.get(ws);return!(this.Ns==ts||this.hasAttribute("noloading")||i&&!t||!function(t){const i=t.tagName.toUpperCase();return"AMP-AD"===(e=i)||"AMP-ANIM"===e||"AMP-EMBED"===e||"AMP-FACEBOOK"===e||"AMP-FACEBOOK-COMMENTS"===e||"AMP-FACEBOOK-PAGE"===e||"AMP-GOOGLE-DOCUMENT-EMBED"===e||"AMP-IFRAME"===e||"AMP-IMG"===e||"AMP-INSTAGRAM"===e||"AMP-LIST"===e||"AMP-PINTEREST"===e||"AMP-PLAYBUZZ"===e||"AMP-RENDER"===e||"AMP-TIKTOK"===e||"AMP-TWITTER"===e||function(t){return"AMP-VIDEO"!=t&&as.test(t)}(i);var e}(this)||Ct(this))}toggleLoading(t,i=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const e=Pi(this.getAmpDoc(),"loadingIndicator");e&&((t=t&&this.me(i))?e.track(this):e.untrack(this))}getOverflowElement(){return void 0===this.Ls&&(this.Ls=kt(this,"overflow"),this.Ls&&(this.Ls.hasAttribute("tabindex")||this.Ls.setAttribute("tabindex","0"),this.Ls.hasAttribute("role")||this.Ls.setAttribute("role","button"))),this.Ls}overflowCallback(t,i,e){this.getOverflowElement(),this.Ls?(this.Ls.classList.toggle("amp-visible",t),this.Ls.onclick=t?()=>{const t=Qi(this.getAmpDoc());t.forceChangeSize(this,i,e),t.mutateElement(this,(()=>{this.overflowCallback(!1,i,e)}))}:null):t&&this.warnOnMissingOverflow}ce(t,i,e=!1){this.ji?Qi(this.getAmpDoc()).mutateElement(i||this,t,e):t()}},t.__AMP_BASE_CE_CLASS}(t,i);class s extends e{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=s.prototype;return s}(t,Er);t.customElements.define(i,s)}function Er(t,i,e){mr.has(t)||(mr.set(t,!0),vr(t));const s=i.localName;e||t.declaresExtension(s)||Ki(t.win).installExtensionForDoc(t,s,"0.1")}var Tr="amp-img",Rr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],Mr=class t extends tr{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(t){const i=t.getAttribute("src");if(i)return[i];const e=t.getAttribute("srcset");if(e){const t=/\S+/.exec(e);if(t)return[t[0]]}return null}constructor(t){super(t),this._e=!0,this.Ae=null,this.ge=null,this.Pe=null,this.ve=0}mutatedAttributesCallback(i){if(this.Ae){const e=Rr.filter((t=>void 0!==i[t]));i.src&&!i.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),e.push("srcset"),this.user().warn(Tr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),_s(e,this.element,this.Ae,!0),this.propagateDataset(this.Ae),t.R1()&&!this.Ae.complete&&this.setReadyState(Ae)}}preconnectCallback(t){const i=this.element.getAttribute("src");if(i)Zi(this.win).url(this.getAmpDoc(),i,t);else{const i=this.element.getAttribute("srcset");if(!i)return;const e=/\S+/.exec(i);e&&Zi(this.win).url(this.getAmpDoc(),e[0],t)}}isLayoutSupported(t){return ds(t)}Ee(){if(this.Ae)return this.Ae;this._e=!this.element.hasAttribute("fallback");const t=Wt(this.element);var i,e;return t&&(this.Ae=Vt(this.element,"> img:not([placeholder])")),this.Ae=this.Ae||new Image,this.Ae.setAttribute("decoding","async"),this.element.id&&this.Ae.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Tr,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),this.Te(!0),_s(Rr,this.element,this.Ae),this.propagateDataset(this.Ae),gs(this.Ae,!0),i=this.element,e=this.Ae,i.hasAttribute("object-fit")&&Oe(e,"object-fit",i.getAttribute("object-fit")),i.hasAttribute("object-position")&&Oe(e,"object-position",i.getAttribute("object-position")),t||this.element.appendChild(this.Ae),this.Ae}Te(t){if(!this.Ae)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this.Ae.hasAttribute("sizes"))return;const i=this.element.getAttribute("srcset");if(!i||/[0-9]+x(?:,|$)/.test(i))return;const{width:e}=this.element.getLayoutSize();if(!this.Re(e))return;const s=this.getViewport().getWidth(),n=`(max-width: ${s}px) ${e}px, `;let r=e+"px";if(this.getLayout()!==is){const t=Math.round(100*e/s);r=Math.max(t,100)+"vw"}const o=n+r;t?this.Ae.setAttribute("sizes",o):this.mutateElement((()=>{this.Ae.setAttribute("sizes",o)})),this.ve=e}Re(t){return!this.Ae.hasAttribute("sizes")||t>this.ve}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this.Ae,i=this.Ee();t||(Ks(i,"load",(()=>{this.setReadyState(ve),this.firstLayoutCompleted(),this.Ie()})),Ks(i,"error",(t=>{this.setReadyState(Pe,t),this.Me()}))),i.complete?(this.setReadyState(ve),this.firstLayoutCompleted(),this.Ie()):this.setReadyState(Ae)}unmountCallback(){const t=this.Ae;t&&!t.complete&&(t.src="",Ut(t),this.Ae=null)}ensureLoaded(){this.Ae.loading="eager"}layoutCallback(){this.Ee();const t=this.Ae;this.ge=Ks(t,"load",(()=>this.Ie())),this.Pe=Ks(t,"error",(()=>this.Me()));const{width:i}=this.element.getLayoutSize();return i<=0?s():this.loadPromise(t)}unlayoutCallback(){if(t.R1())return;this.Pe&&(this.Pe(),this.Pe=null),this.ge&&(this.ge(),this.ge=null);const i=this.Ae;return i&&!i.complete&&(i.src="",Ut(i),this.Ae=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Se(t,{"opacity":0}):this.togglePlaceholder(!1)}Ie(){!this._e&&this.Ae.classList.contains("i-amphtml-ghost")&&(this.Ae.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}Me(){this._e&&(this.Ae.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this._e=!1)}propagateDataset(t){for(const i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(const i in this.element.dataset)i.startsWith("ampBind")&&"ampBind"!==i||t.dataset[i]!==this.element.dataset[i]&&(t.dataset[i]=this.element.dataset[i])}},wr=class extends tr{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==ns||ds(t)}buildCallback(){!function(t){if(Wt(t))return;const i=function(t){var i;return us(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Ds(t).layout}(t);if(i==ns)return;const e=t.ownerDocument.createElement("div");gs(e),function(t){return function(t,i){const e=[];for(let i=t.firstChild;i;i=i.nextSibling)!Ct(i)&&e.push(i);return e}(t)}(t).forEach((t=>{e.appendChild(t)})),t.appendChild(e)}(this.element)}};function Ir(t,i,e=!1,s,n){const r=new(Be.getImage(t));e&&(r.referrerPolicy="no-referrer");let o=0;var h;return null!=s&&((null===(h=t.document.featurePolicy)||void 0===h?void 0:h.allowedFeatures().includes("attribution-reporting"))?(o=6,s=xr(t,o,n)(s),r.attributionSrc=s):o=5),i=xr(t,o,n)(i),r.src=i,r}function xr(t,i,e){const s={"ATTRIBUTION_REPORTING_STATUS":()=>i},n=ee(e||t.document),r={"ATTRIBUTION_REPORTING_STATUS":!0};return t=>n.expandUrlSync(t,s,r)}var Vr="amp-pixel",Sr=class extends tr{constructor(t){super(t),this.ye=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.we=this.element.getAttribute("referrerpolicy"),this.we&&Rt("no-referrer"==this.we,`${Vr}: invalid "referrerpolicy" value "${this.we}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.be.bind(this))}be(){if(this.ye)return Et().error(Vr,"duplicate pixel"),this.ye;this.ye=ie(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return ee(this.element).expandUrlAsync(this.Ve(t)).then((t=>{if(this.win)return function(t,i,e,s,n){return e&&"no-referrer"!==e&&yt().error("pixel","Unsupported referrerPolicy: %s",e),"no-referrer"===e?function(t,i,e,s){if("referrerPolicy"in Image.prototype)return Ir(t,i,!0,e,s);{const e=$t(t.document,"iframe",{"src":"about:blank","style":"display:none"});return e.onload=()=>{Ir(e.contentWindow,i,void 0,void 0,s)},t.document.body.appendChild(e),e}}(t,i,s,n):Ir(t,i,!1,s,n)}(this.win,t,this.we,this.element.getAttribute("attributionsrc"),this.element)}))}))}Ve(t){return Rt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t}},Or=class{constructor(t,i,e){this.Se=ie(t),this.xe=i,this.Oe=e||0,this.Ce=-1,this.ke=0,this.Ne=!1,this.De=()=>{this.Le()}}isPending(){return-1!=this.Ce}schedule(t){let i=t||this.Oe;this.Ne&&i<10&&(i=10);const e=Date.now()+i;return(!this.isPending()||e-this.ke<-10)&&(this.cancel(),this.ke=e,this.Ce=this.Se.delay(this.De,i),!0)}Le(){this.Ce=-1,this.ke=0,this.Ne=!0,this.xe(),this.Ne=!1}cancel(){this.isPending()&&(this.Se.cancel(this.Ce),this.Ce=-1)}};function kr(t){return function(t,i){const e=i.documentElement;return["⚡4email","amp4email"].some((t=>e.hasAttribute(t)))}(0,t)}var Cr="Action",Lr="__AMP_ACTION_MAP__"+Math.random(),Nr="__AMP_ACTION_QUEUE__",Dr="__AMP_ACTION_HANDLER__",Ur={"form":["submit","clear"]},$r=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Fr={"button":!0,"checkbox":!0,"link":!0,"listbox":!0,"menuitem":!0,"menuitemcheckbox":!0,"menuitemradio":!0,"option":!0,"radio":!0,"scrollbar":!0,"slider":!0,"spinbutton":!0,"switch":!0,"tab":!0,"treeitem":!0},zr=class{constructor(t,i,e,s,n,r,o,h="?",l=null,a=Math.random()){this.node=t,this.method=i,this.args=e,this.source=s,this.caller=n,this.event=r,this.trust=o,this.actionEventType=h,this.tagOrTarget=l||t.tagName,this.sequenceId=a}satisfiesTrust(t){if(!M(this.trust))return Et().error(Cr,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust<t){const t=function(t){switch(t){case 1:return"low";case 3:return"high";default:return k(2===t),"default"}}(this.trust);return yt().error(Cr,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function Hr(t){return"amp-"===t.substring(0,4)}var Br=class{constructor(t){this.detail=null,function(t,i){const e=i||p();for(const i in t){const s=t[i];e[i]="function"==typeof s?jr:t[i]}}(t,this)}};function jr(){Tt(null)}function Gr(t,i){const e=Wr.bind(null,t,i),s=Kr.bind(null,t,i);let n=null;const r=new Xr(t);let o,h;do{if(o=r.next(),o.type==Yr.EOF||o.type==Yr.SEPARATOR&&";"==o.value);else if(o.type==Yr.LITERAL||o.type==Yr.ID){const i=o.value;s(r.next(),[Yr.SEPARATOR],":");const l=[];do{const n=s(r.next(),[Yr.LITERAL,Yr.ID]).value;let o=Zn,a=null;h=r.peek(),h.type==Yr.SEPARATOR&&"."==h.value&&(r.next(),o=s(r.next(),[Yr.LITERAL,Yr.ID]).value||o,h=r.peek(),h.type==Yr.SEPARATOR&&"("==h.value&&(r.next(),a=qr(r,s,e))),l.push({event:i,target:n,method:o,args:a,str:t}),h=r.peek()}while(h.type==Yr.SEPARATOR&&","==h.value&&r.next());n||(n=p()),n[i]=l}else e(!1,`; unexpected token [${o.value||""}]`)}while(o.type!=Yr.EOF);return n}function qr(t,i,e){let s,n=t.peek(),r=null;if(n.type==Yr.OBJECT){r=p();const{value:e}=t.next();r.__AMP_OBJECT_STRING__=e,i(t.next(),[Yr.SEPARATOR],")")}else do{s=t.next();const{type:h,value:l}=s;if(h!=Yr.SEPARATOR||","!=l&&")"!=l)if(h==Yr.LITERAL||h==Yr.ID){i(t.next(),[Yr.SEPARATOR],"="),s=i(t.next(!0),[Yr.LITERAL,Yr.ID]);const h=[s];if(s.type==Yr.ID)for(n=t.peek();n.type==Yr.SEPARATOR&&"."==n.value;n=t.peek())t.next(),s=i(t.next(!1),[Yr.ID]),h.push(s);const a=0==(o=h).length?null:1==o.length?o[0].value:{expression:o.map((t=>t.value)).join(".")};r||(r=p()),r[l]=a,n=t.peek(),e(n.type==Yr.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else e(!1,`; unexpected token [${s.value||""}]`)}while(s.type!=Yr.SEPARATOR||")"!=s.value);var o;return r}function Wr(t,i,e,s){return Rt(e,"Invalid action definition in %s: [%s] %s",i,t,s||"")}function Kr(t,i,e,s,n){return void 0!==n?Wr(t,i,s.includes(e.type)&&e.value==n,`; expected [${n}]`):Wr(t,i,s.includes(e.type)),e}var Yr={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},Qr=" \t\n\r\f\v \u2028\u2029",Xr=class{constructor(t){this.Ue=t,this.$e=-1}next(t){const i=this.Fe(t||!1);return this.$e=i.index,i}peek(t){return this.Fe(t||!1)}Fe(t){let i=this.$e+1;if(i>=this.Ue.length)return{type:Yr.EOF,index:this.$e};let e=this.Ue.charAt(i);if(-1!=Qr.indexOf(e)){for(i++;i<this.Ue.length&&-1!=Qr.indexOf(this.Ue.charAt(i));i++);if(i>=this.Ue.length)return{type:Yr.EOF,index:i};e=this.Ue.charAt(i)}if(t&&(Jr(e)||"."==e&&i+1<this.Ue.length&&Jr(this.Ue[i+1]))){let t="."==e,s=i+1;for(;s<this.Ue.length;s++){const i=this.Ue.charAt(s);if("."!=i){if(!Jr(i))break}else t=!0}const n=this.Ue.substring(i,s),r=t?parseFloat(n):parseInt(n,10);return i=s-1,{type:Yr.LITERAL,value:r,index:i}}if(-1!=";:.()=,|!".indexOf(e))return{type:Yr.SEPARATOR,value:e,index:i};if(-1!="\"'".indexOf(e)){let t=-1;for(let s=i+1;s<this.Ue.length;s++)if(this.Ue.charAt(s)==e){t=s;break}if(-1==t)return{type:Yr.INVALID,index:i};const s=this.Ue.substring(i+1,t);return i=t,{type:Yr.LITERAL,value:s,index:i}}if("{"==e){let t=1,e=-1;for(let s=i+1;s<this.Ue.length;s++){const i=this.Ue[s];if("{"==i?t++:"}"==i&&t--,t<=0){e=s;break}}if(-1==e)return{type:Yr.INVALID,index:i};const s=this.Ue.substring(i,e+1);return i=e,{type:Yr.OBJECT,value:s,index:i}}let s=i+1;for(;s<this.Ue.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.Ue.charAt(s));s++);const n=this.Ue.substring(i,s);if(i=s-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:Yr.LITERAL,value:t,index:i}}return Jr(n.charAt(0))?{type:Yr.LITERAL,value:n,index:i}:{type:Yr.ID,value:n,index:i}}};function Jr(t){return t>="0"&&t<="9"}function Zr(t){return!!t&&"function"==typeof t.getFormData}var to=["GET","POST"],io=[P,f];function eo(t,i){const e=A({},i);if(Zr(i.body)){const t=i.body;e.headers["Content-Type"]="multipart/form-data;charset=utf-8",e.body=function(t){const i=[];for(let e=t.next();!e.done;e=t.next())i.push(e.value);return i}(t.entries())}return{input:t,init:e}}function so(t,i){const e=t||{},s=e.credentials;return k(void 0===s||"include"==s||"omit"==s),e.method=void 0===(n=e.method)?"GET":(n=n.toUpperCase(),k(to.includes(n)),n),e.headers=e.headers||{},i&&(e.headers.Accept=i),k(null!==e.body),e;var n}function no(t){return new Promise((i=>{if(t.ok)return i(t);const{status:e}=t,s=yt().createError(`HTTP error ${e}`);throw s.retriable=function(t){return 415==t||t>=500&&t<600}(e),s.response=t,s}))}var ro=class{constructor(t){this.win=t;const i=ji(t);this.Be=i.isSingleDoc()?i.getSingleDoc():null}He(t,i){return function(t,i,e,n){if(!i)return s();const r=n.prerenderSafe?s():i.whenFirstVisible(),o=re(i),h=yn(e),l=o.hasCapability("xhrInterceptor"),a=n.bypassInterceptorForDev&&!1;return h||!l||a?r:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((()=>o.isTrustedViewer())).then((i=>{if(!i&&!zs(t,"untrusted-xhr-interception"))return;const s={"originalRequest":eo(e,n)};return o.sendMessageAwaitResponse("xhr",s).then((t=>function(t,i){if(D(f(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);const e=p(),s={status:200,statusText:"OK",getResponseHeader:t=>e[String(t).toLowerCase()]||null};if(t.init){const i=t.init;P(i.headers)&&i.headers.forEach((t=>{const i=t[0],s=t[1];e[String(i).toLowerCase()]=String(s)})),i.status&&(s.status=parseInt(i.status,10)),i.statusText&&(s.statusText=String(i.statusText))}return new Response(t.body?String(t.body):"",s)}(t,n.responseType)))})):r}(this.win,this.Be,t,i).then((t=>{if(t)return t;if(Zr(i.body)){const t=i.body;i.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}je(t,i={}){return t=function(t,i,e){return k("string"==typeof i),!1!==e.ampCors&&(i=In(t,i)),i}(this.win,t,i),i=function(t,i,e){e=e||{};const s=function(t){return t.origin||dn(t.location.href).origin}(t);return s==dn(i).origin&&(e.headers=e.headers||{},e.headers["AMP-Same-Origin"]="true"),e}(this.win,t,i),this.He(t,i).then((t=>t),(i=>{const e=dn(t).origin;throw yt().createExpectedError("XHR",`Failed fetching (${e}/...):`,i&&i.message)}))}fetchJson(t,i){return this.fetch(t,function(t){const i=so(t,"application/json");if("POST"==i.method&&!Zr(i.body)){k(io.some((t=>t(i.body)))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";const t=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===t?_n(i.body):JSON.stringify(i.body)}return i}(i))}fetchText(t,i){return this.fetch(t,so(i,"text/plain"))}xssiJson(t,i){return i?t.text().then((t=>t.startsWith(i)?U(t.slice(i.length)):U(t))):t.json()}fetch(t,i){const e=so(i);return this.je(t,e).then((t=>no(t)))}sendSignal(t,i){return this.je(t,i).then((t=>no(t)))}getCorsUrl(t,i){return In(t,i)}},oo=class extends ro{constructor(t){super(t),this.ze=p()}fetch(t,i){const e=i&&i.headers&&i.headers.Accept||"",s=!i||!i.method||"GET"===i.method,n=this.Ge(t,e),r=!!this.ze[n];if(s&&r)return this.ze[n].then((t=>t.clone()));const o=super.fetch(t,i);return s&&(this.ze[n]=o.then((t=>(delete this.ze[n],t.clone())),(t=>{throw delete this.ze[n],t}))),o}Ge(t,i){return Pn(wn(t,Mn(this.win.location)))+i}},ho={"+":"-","/":"_","=":"."};function lo(t){const i=function(t){const i=new Array(t.length);for(let e=0;e<t.length;e++)i[e]=String.fromCharCode(t[e]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(t=>ho[t]))}var ao="Crypto";var uo=["prefetch","preload","preconnect","dns-prefetch"],co={attributes:!0,attributeFilter:["hidden"],subtree:!0};function fo(t){try{return t.state}catch(t){return null}}var po="History",mo="AMP.History";function go(t){const i=re(t);let e;return i.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?e=new class{constructor(t,i){this.win=t,this.We=i,this.Ke=0,this.Ye=null,this.Je=this.We.onMessage("historyPopped",(t=>this.Qe(t)))}replaceStateForTarget(t){Tt("#"==t[0]),this.win.location.replace(t)}cleanup(){this.Je()}setOnStateUpdated(t){this.Ye=t}Xe(t,i,e){return this.Ze(t)?t:i}Ze(t){return!!t&&void 0!==t.stackIndex}push(t){const i=A({"stackIndex":this.Ke+1},t||{}),e="pushHistory";return this.We.sendMessageAwaitResponse(e,i).then((t=>{const s=i,n=this.Xe(t,s,e);return this.Dn(n),n}))}pop(t){if(t>this.Ke)return this.get();const i={"stackIndex":this.Ke},e="popHistory";return this.We.sendMessageAwaitResponse(e,i).then((t=>{const i={"stackIndex":this.Ke-1},s=this.Xe(t,i,e);return this.Dn(s),s}))}replace(t){if(t&&t.url){if(!this.We.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.Ke};return Promise.resolve(t)}const i=t.url.replace(/#.*/,"");t.url=i}const i=A({"stackIndex":this.Ke},t||{}),e="replaceHistory";return this.We.sendMessageAwaitResponse(e,i,!0).then((t=>{const s=i,n=this.Xe(t,s,e);return this.Dn(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Ke,title:""})}Qe(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.Ze(t)&&this.Dn(t)}Dn(t){const{stackIndex:i}=t;this.Ke!=i&&(this.Ke=i,this.Ye&&this.Ye(t))}getFragment(){return this.We.hasCapability("fragment")?this.We.sendMessageAwaitResponse("getFragment",void 0,!0).then((t=>{if(!t)return"";let i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")}updateFragment(t){return this.We.hasCapability("fragment")?this.We.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):s()}}(t.win,i):(mi(t.win,"global-history-binding",class{constructor(t){this.win=t,this.Se=ie(t);const{history:i}=this.win;this.Bn=i.length-1;const e=fo(i);let s,n;e&&void 0!==e[mo]&&(this.Bn=Math.min(e[mo],this.Bn)),this.Ke=this.Bn,this.Hn,this.Ye=null,this.Gn="state"in i,this.qn=this.Wn(this.Ke),i.pushState&&i.replaceState?(this.Kn=i.originalPushState||i.pushState.bind(i),this.Yn=i.originalReplaceState||i.replaceState.bind(i),s=(t,i,e)=>{this.qn=t;try{this.Kn(t,i,e||null)}catch(t){Et().error(po,"pushState failed: "+t.message)}},n=(t,i,e)=>{this.qn=t;try{void 0!==e?this.Yn(t,i,e):this.Yn(t,i)}catch(t){Et().error(po,"replaceState failed: "+t.message)}},i.originalPushState||(i.originalPushState=this.Kn),i.originalReplaceState||(i.originalReplaceState=this.Yn)):(s=(t,i,e)=>{this.qn=t},n=(t,i,e)=>{this.qn=t}),this.Qn=s,this.Xn=n;try{this.Xn(this.Wn(this.Ke,!0))}catch(t){Et().error(po,"Initial replaceState failed: "+t.message)}i.pushState=this.Zn.bind(this),i.replaceState=this.tr.bind(this),this.ir=t=>{t.state,this.sr()},this.win.addEventListener("popstate",this.ir)}cleanup(){this.Kn&&(this.win.history.pushState=this.Kn),this.Yn&&(this.win.history.replaceState=this.Yn),this.win.removeEventListener("popstate",this.ir)}Wn(t,i){const e=p(i?this.er():void 0);return e[mo]=t,e}setOnStateUpdated(t){this.Ye=t}push(t){return this.nr((()=>{const i=this.rr(this.er(),t||{});return this.Zn(i,void 0,i.fragment?"#"+i.fragment:void 0),r((()=>this.rr(i,{stackIndex:this.Ke})))}))}pop(t){return t=Math.max(t,this.Bn),this.nr((()=>this.hr(this.Ke-t+1))).then((t=>this.rr(this.er(),{stackIndex:t})))}replace(t={}){return this.nr((()=>{const i=this.rr(this.er(),t||{}),e=(i.url||"").replace(/#.*/,""),s=i.fragment?"#"+i.fragment:"";return this.tr(i,i.title,e||s?e+s:void 0),r((()=>this.rr(i,{stackIndex:this.Ke})))}))}get(){return r((()=>this.rr(this.er(),{stackIndex:this.Ke})))}backTo(t){return t=Math.max(t,this.Bn),this.nr((()=>this.hr(this.Ke-t)))}sr(){let t=this.er();const i=t?t[mo]:void 0;let e=this.Ke;const s=this.Hn;this.Hn=void 0,e>this.win.history.length-2&&(e=this.win.history.length-2,this.Dn(this.rr(t,{stackIndex:e}))),null==i?e+=1:e=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[mo]=e,this.Xn(t,void 0,void 0),e!=this.Ke&&this.Dn(this.rr(t,{stackIndex:e})),e<this.Bn&&(this.Bn=e),s&&s.resolve()}er(){return this.Gn?fo(this.win.history):this.qn}ur(){Tt(!this.Hn)}nr(t){return this.Hn?this.Hn.promise.then(t,t):t()}lr(){this.ur();const t=new n,{reject:i,resolve:e}=t,s=this.Se.timeoutPromise(500,t.promise);return this.Hn={promise:s,resolve:e,reject:i},s}hr(t){if(this.ur(),t<=0)return Promise.resolve(this.Ke);this.qn=this.Wn(this.Ke-t);const i=this.lr();return this.win.history.go(-t),i.then((()=>Promise.resolve(this.Ke)))}Zn(t,i,e){this.ur(),t||(t={});let s=this.Ke+1;t[mo]=s,this.Qn(t,i,e),s!=this.win.history.length-1&&(s=this.win.history.length-1,t[mo]=s,this.Xn(t));const n=this.rr(t,{stackIndex:s});this.Dn(n)}replaceStateForTarget(t){Tt("#"==t[0]),this.nr((()=>{this.win.removeEventListener("popstate",this.ir);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.ir)}return this.tr(),s()}))}tr(t,i,e){this.ur(),t||(t={});const s=Math.min(this.Ke,this.win.history.length-1);t[mo]=s,this.Xn(t,i,e);const n=this.rr(t,{stackIndex:s});this.Dn(n)}Dn(t){this.ur(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.Ke!=t.stackIndex&&(this.Ke=t.stackIndex,this.Ye&&this.Ye(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}rr(t,i){const e=A(A({},t&&t.data||{}),i.data||{});return A(A(A({},t||{}),i),{},{data:e})}}),e=_i(t.win,"global-history-binding")),new class{constructor(t,i){this.ji=t,this.Se=ie(t.win),this.cr=i,this.Ke=0,this.ar=[],this.es=[],this.cr.setOnStateUpdated(this.Ye.bind(this))}cleanup(){this.cr.cleanup()}push(t,i){return this.dr((()=>this.cr.push(i).then((i=>(this.Ye(i),t&&(this.ar[i.stackIndex]=t),i.stackIndex)))),"push")}pop(t){return this.dr((()=>this.cr.pop(t).then((t=>{this.Ye(t)}))),"pop")}replace(t){return this.dr((()=>this.cr.replace(t)),"replace")}get(){return this.dr((()=>this.cr.get()),"get")}goBack(t){return this.dr((()=>this.Ke<=0&&!t?s():this.cr.pop(this.Ke).then((t=>{this.Ye(t)}))),"goBack")}replaceStateForTarget(t){Tt("#"==t[0]);const i=this.ji.win.location.hash;return this.push((()=>{this.ji.win.location.replace(i||"#")})).then((()=>{this.cr.replaceStateForTarget(t)}))}getFragment(){return this.cr.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.cr.updateFragment(t)}Ye(t){this.Ke=t.stackIndex,this.pr(t)}pr(t){if(this.Ke>=this.ar.length-1)return;const i=[];for(let t=this.ar.length-1;t>this.Ke;t--)this.ar[t]&&(i.push(this.ar[t]),this.ar[t]=void 0);if(this.ar.splice(this.Ke+1),i.length>0)for(let e=0;e<i.length;e++)this.Se.delay((()=>i[e](t)),1)}dr(t,i){const e=new n,{promise:s,reject:r,resolve:o}=e,h=new Error("history trace for "+i+": ");return this.es.push({callback:t,resolve:o,reject:r,trace:h}),1==this.es.length&&this.mr(),s}mr(){if(0==this.es.length)return;const t=this.es[0];let i;try{i=t.callback()}catch(t){i=Promise.reject(t)}i.then((i=>{t.resolve(i)}),(i=>{Et().error(po,"failed to execute a task:",i),t.trace&&(t.trace.message+=i,Et().error(po,t.trace)),t.reject(i)})).then((()=>{this.es.splice(0,1),this.mr()}))}}(t,e)}var _o=null,Ao=["gclid","gclsrc"];function vo(){return Rt(_o,"E#19457 trackImpressionPromise")}function Po(t,i,e,s){let n;try{n=t.open(i,e,s)}catch(t){Et().error("DOM","Failed to open url on target: ",e,t)}var r,o;return!n&&"_top"!=e&&("number"!=typeof o&&(o=0),o+"noopener".length>(r=s||"").length||-1===r.indexOf("noopener",o))&&(n=t.open(i,"_top")),n}var yo="navigation",bo="click",Eo="contextmenu",To=["_top","_blank"],Ro="data-a4a-orig-href",Mo=class{constructor(t){this.ampdoc=t,this.ga=t.getRootNode(),this.Cl=he(this.ampdoc),this.We=re(this.ampdoc),this.Ar=Yi(this.ampdoc),this.Vh=Ji(this.ampdoc.win),this.Pa=this.Vh.isIos()&&this.Vh.isSafari(),this.ku=jt(this.ampdoc.win)&&this.We.isOvertakeHistory(),this.va=this.ga!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.Ea="inabox"==at(this.ampdoc.win).runtime,this.Ta=this.ga.nodeType==Node.DOCUMENT_NODE?this.ga.documentElement:this.ga,this.Ra=this.Ia.bind(this),this.ga.addEventListener(bo,this.Ra),this.ga.addEventListener(Eo,this.Ra),this.Ma=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this.Ma=t})),this.Qu=!1,this.ya=!1,Promise.all([this.We.isTrustedViewer(),this.We.getViewerOrigin()]).then((t=>{var i;this.Qu=t[0],this.ya=(i=t[1],et.test(cn(i).origin))})),this.wa=null,this.ba=new jn,this.Va=new jn}static installAnchorClickInterceptor(t,i){i.document.documentElement.addEventListener("click",wo.bind(null,t),!0)}cleanup(){this.Ra&&(this.ga.removeEventListener(bo,this.Ra),this.ga.removeEventListener(Eo,this.Ra))}openWindow(t,i,e,s){let n="";!this.Vh.isIos()&&this.Vh.isChrome()||s||(n+="noopener");const r=Po(t,i,e,n);r&&!s&&(r.opener=null)}navigateTo(t,i,e,s={}){const{opener:n=!1,target:r="_top"}=s;i=this.Sa(i);const o=ne(this.Ta);if(!o.isProtocolValid(i))return void yt().error(yo,"Cannot navigate to invalid protocol: "+i);Rt(To.includes(r),`Target '${r}' not supported.`);const h=o.getSourceUrl(t.location);i=o.resolveRelativeUrl(i,h),"_blank"!=r?e&&(this.wa||(this.wa=this.xa()),this.wa.includes(e)&&this.navigateToAmpUrl(i,e))||(t.top.location.href=i):this.openWindow(t,i,r,n)}navigateToAmpUrl(t,i){return!!this.We.hasCapability("a2a")&&(this.We.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)}xa(){const t=this.ga.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}Ia(t){if(t.defaultPrevented)return;const i=St(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==bo?this.Oa(i,t):t.type==Eo&&this.Ca(i,t))}Oa(t,i){this.ka(t);let e=this.Na(t.href);if(this.Da(i,t,e))return;if(this.La(i,t,e))return;const s=this.Ua();Io(e)!=Io(s)&&(this.$a(t,i),e=this.Na(t.href)),this.Fa(i,t,e,s)}Ca(t,i){this.ka(t),this.$a(t,i)}$a(t,i){this.ba.forEach((e=>{e(t,i)}))}Sa(t){return this.Va.forEach((i=>{t=i(t)})),t}ka(t){let i=null;this.Ma&&!this.va&&(i=function(t,i){const e=W(dn(Be.getLocation(t).href).search),s=[];for(let t=0;t<Ao.length;t++){const i=Ao[t];void 0!==e[i]&&s.push(i)}const n=i.getAttribute("data-amp-addparams");let{href:r}=i;n&&(r=gn(r,W(n)));const o=W(dn(r).search);for(let t=s.length-1;t>=0;t--)void 0!==o[s[t]]&&s.splice(t,1);return function(t){let i="";for(let e=0;e<t.length;e++){const s=t[e];i+=0==e?`${s}=QUERY_PARAM(${s})`:`&${s}=QUERY_PARAM(${s})`}return i}(s)}(this.ampdoc.win,t)),ee(t).maybeExpandLink(t,i)}La(t,i,e){if(!this.ku)return!1;const s=Mt(i),n=i.href,{protocol:r}=e;if("ftp:"==r)return Po(s,n,"_blank"),t.preventDefault(),!0;const o=/^(https?|mailto):$/.test(r);return!(!this.Pa||o||(Po(s,n,"_top"),t.preventDefault(),0))}Da(t,i,e){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(e.href,"<a rel=amphtml>")||(t.preventDefault(),0))}Fa(t,i,e,s){const n=Io(e),r=Io(s);if(e.hash&&n==r)this.Ba(t,e,s);else{let e=(i.getAttribute("target")||"").toLowerCase();(this.va||this.Ea)&&"_top"!=e&&"_blank"!=e&&(e="_blank",i.setAttribute("target",e));const{win:r}=this.ampdoc,o=Ji(r),h=re(i);s.search&&o.isSafari()&&o.getMajorVersion()>=13&&h.isProxyOrigin()&&h.isEmbedded()&&this.Ha(r,s,e),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}Ha(t,i,e){const s=i.href,n=`${i.origin}${i.pathname}${i.hash}`;t.history.replaceState(null,"",n);const r=()=>{const i=t.location.href;i==n?t.history.replaceState(null,"",s):Et().error(yo,"Unexpected iframe URL change:",i,n)};"_blank"===e?t.setTimeout(r,0):t.addEventListener("pageshow",(function i(e){e.persisted&&(r(),t.removeEventListener("pageshow",i))}))}Ba(t,i,e){if(t.preventDefault(),this.va)return;const s=i.hash.slice(1);let n=null;if(s){const t=It(s);n=this.ga.getElementById(s)||this.ga.querySelector(`a[name="${t}"]`)}i.hash!=e.hash?this.Ar.replaceStateForTarget(i.hash).then((()=>{this.ja(n,s)})):this.ja(n,s)}registerAnchorMutator(t,i){this.ba.enqueue(t,i)}registerNavigateToMutator(t,i){this.Va.enqueue(t,i)}ja(t,i){t&&(this.Cl.scrollIntoView(t),ie(this.ampdoc.win).delay((()=>this.Cl.scrollIntoView(t)),1))}Na(t){return ne(this.Ta).parse(t)}Ua(){return this.Na("")}viewerInterceptsNavigation(t,i){const e=this.We.hasCapability("interceptNavigation"),s=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!e||!s||!this.Qu&&!this.ya||(this.We.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))}};function wo(t,i){const e=St(i.target,"A");if(!e||!e.href)return;const s=e.getAttribute(Ro)||e.getAttribute("href");if(!s)return;const n={"CLICK_X":()=>i.pageX,"CLICK_Y":()=>i.pageY},r=ee(e).expandUrlSync(s,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=s&&(e.getAttribute(Ro)||e.setAttribute(Ro,s),e.setAttribute("href",r))}function Io(t){return`${t.origin}${t.pathname}${t.search}`}function xo(t){return P(t)?t:[t]}function Vo(t){mi(t,"platform",class{constructor(t){this.fo=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this.fo.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.fo.userAgent)}isSafari(){return/Safari/i.test(this.fo.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.fo.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.fo.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.fo.userAgent)}isEdge(){return/Edge/i.test(this.fo.userAgent)}isWebKit(){return/WebKit/i.test(this.fo.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.fo.userAgent)}isStandalone(){return this.isIos()&&this.fo.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.fo.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.po(/\sVersion\/(\d+)/,1):this.isChrome()?this.po(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.po(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.po(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.po(/Edge\/(\d+)/,1):0}po(t,i){if(!this.fo.userAgent)return 0;const e=this.fo.userAgent.match(t);return!e||i>=e.length?0:parseInt(e[i],10)}getIosVersionString(){var t,i,e;return this.isIos()&&(null===(t=this.fo.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(e=i[1])||void 0===e?void 0:e.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}function So(t){return t.queryCommandSupported("copy")}function Oo(t){return t.hasAttribute("hidden")}var ko="STANDARD-ACTIONS",Co=/^i-amphtml-/;var Lo="__AMP_IMPL_",No=()=>{};function Do(t){mi(t,"timer",class{constructor(t){this.win=t,this.$r=this.win.Promise.resolve(),this.Fr=0,this.Br={},this.Hr=Date.now()}timeSinceStart(){return Date.now()-this.Hr}delay(t,i){if(!i){const i="p"+this.Fr++;return this.$r.then((()=>{this.Br[i]?delete this.Br[i]:t()})).catch(Cn),i}return this.win.setTimeout((()=>{try{t()}catch(t){throw Cn(t),t}}),i)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Br[t]=!0}promise(t){return new this.win.Promise((i=>{if(-1==this.delay(i,t))throw new Error("Failed to schedule timer.")}))}timeoutPromise(t,i,e){let s;const n=new this.win.Promise(((i,n)=>{if(s=this.delay((()=>{n(yt().createError(e||"timeout"))}),t),-1==s)throw new Error("Failed to schedule timer.")}));if(!i)return n;const r=()=>{this.cancel(s)};return i.then(r,r),this.win.Promise.race([n,i])}poll(t,i){return new this.win.Promise((e=>{const s=this.win.setInterval((()=>{i()&&(this.win.clearInterval(s),e())}),t)}))}})}var Uo="Expander",$o=class{constructor(t,i,e,s,n,r){this.jr=t,this.zr=i,this.Gr=e,this.qr=s,this.Wr=n,this.Kr=!r}expand(t){if(!t.length)return this.qr?t:Promise.resolve(t);const i=this.jr.getExpr(this.zr,this.Wr),e=this.Yr(t,i);return e.length?this.Jr(t,e):this.qr?t:Promise.resolve(t)}getMacroNames(t){const i=this.jr.getExpr(this.zr,this.Wr);return t.match(i)||[]}Yr(t,i){const e=[];return t.replace(i,((t,i,s)=>{const{length:n}=t,r={start:s,stop:n+s-1,name:i,length:n};e.push(r)})),e}Jr(t,i){const e=[];let s=0,n=0,r=i[n],o=0,h=!1;const l=u=>{let c="",d=[];const f=[];for(;s<t.length&&n<=i.length;){const a=c.trim();if(r&&s===r.start){let h;a&&d.push(o?(p=c).trimStart?p.trimStart():(p+"_").trim().slice(0,-1):c),h=this.zr&&m(this.zr,r.name)?{name:r.name,prioritized:this.zr[r.name],encode:u}:A(A({},this.jr.get(r.name)),{},{name:r.name,encode:u}),s=r.stop+1,r=i[++n],"("===t[s]?(s++,o++,e.push(h),d.push(l(!1))):d.push(this.Qr(h)),c=""}else if("`"===t[s])h?(h=!1,c.length&&d.push(c)):(h=!0,a&&d.push(a)),c="",s++;else if(o&&","===t[s]&&!h)a&&d.push(a),f.push(d),d=[],","===t[s+1]&&(f.push([""]),s++),c="",s++;else{if(o&&")"===t[s]&&!h){s++,o--;const t=e.pop();return a&&d.push(a),f.push(d),this.Qr(t,f)}c+=t[s],s++}s===t.length&&c.length&&d.push(c)}var p;return this.qr?d.join(""):Promise.all(d).then((t=>t.join(""))).catch((t=>(a(t),"")))};return l(this.Kr)}Qr(t,i){const{encode:e,name:s}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.qr&&null!=t.sync?n=t.sync:this.qr?(yt().error(Uo,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.qr){const t=this.Xr(n,s,i);return e?encodeURIComponent(t):t}return this.Zr(n,s,i).then((t=>e?encodeURIComponent(t):t))}Zr(t,i,e){let s;try{if("function"==typeof t){const i=t;s=e?this.th(e).then((t=>i.apply(null,t))):r(i)}else s=Promise.resolve(t);return s.then((t=>{let s;return this.ih(i,t,e),s=null==t?"":t,s})).catch((t=>(a(t),this.ih(i,"",e),Promise.resolve(""))))}catch(t){return a(t),this.ih(i,"",e),Promise.resolve("")}}th(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}Xr(t,i,e){try{let s,n=t;return"function"==typeof t&&(n=t.apply(null,this.sh(e))),n&&"function"==typeof n.then?(yt().error(Uo,"ignoring async macro resolution"),s=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.ih(i,n,e),s=n.toString()):(this.ih(i,"",e),s=""),s}catch(t){return a(t),this.ih(i,"",e),""}}sh(t){return t?t.map((t=>t.join(""))):t}ih(t,i,e){if(!this.Gr)return;let s="";e&&(s=`(${e.filter((t=>""!==t)).join(",")})`),this.Gr[`${t}${s}`]=i||""}},Fo={"navigationStart":1,"redirectStart":1,"redirectEnd":1,"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"secureConnectionStart":1,"connectEnd":1,"requestStart":1,"responseStart":1,"responseEnd":1,"domLoading":2,"domInteractive":2,"domContentLoaded":2,"domComplete":2,"loadEventStart":3,"loadEventEnd":4};function zo(t,i,e){const n=Fo[i]||3,r=e?Fo[e]||3:n,o=Math.max(n,r);let h;if(1===o)h=s();else if(2===o)h=Me(t.document);else if(3===o)h=Xs(t);else if(4===o){const i=ie(t);h=Xs(t).then((()=>i.promise(1)))}return Tt(h),h.then((()=>Ho(t,i,e)))}function Ho(t,i,e){const s=t.performance&&t.performance.timing;if(!s||0==s.navigationStart)return;const n=void 0===e?s[i]:s[e]-s[i];return!M(n)||n<0?void 0:n}function Bo(t,i){const e=t.performance&&t.performance.navigation;if(e&&void 0!==e[i])return e[i]}var jo="UrlReplacements";function Go(t){return()=>(new Date)[t]()}function qo(t,i){return()=>t[i]}function Wo(t,i){return i?(Rt("ISOCountry"===i,"The value passed to AMP_GEO() is not valid name:"+i),t&&t[i]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}function Ko(t,i){Tt(t);try{void 0!==t(i)&&Et().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return a(t),!1}return!0}function Yo(t){if(t.defaultPrevented)return;const i=t.target;if(!i||"FORM"!=i.tagName)return;let e;e=i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"),e&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();const s=i.elements;for(let t=0;t<s.length;t++)Rt(!s[t].name||s[t].name!=un,"Illegal input name, %s found: %s",un,s[t]);const n=i.getAttribute("action"),r=i.getAttribute("action-xhr"),o=(i.getAttribute("method")||"GET").toUpperCase();if(r&&(vn(r,i,"action-xhr"),Rt(!yn(r),"form action-xhr should not be on AMP CDN: %s",i),xn(r)),n&&(vn(n,i,"action"),Rt(!yn(n),"form action should not be on AMP CDN: %s",i),xn(n)),"GET"==o)Rt(r||n,"form action-xhr or action attribute is required for method=GET: %s",i);else if("POST"==o){if(n){const t="form";yt().error(t,"action attribute is invalid for method=POST: %s",i)}r||(t.preventDefault(),Rt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i))}const h=i.getAttribute("target");h?Rt("_blank"==h||"_top"==h,"form target=%s is invalid can only be _blank or _top: %s",h,i):i.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),zi(i).execute(i,"submit",null,i,i,t,3))}var Qo=["<link rel=preload referrerpolicy=origin>"],Xo=18e4,Jo=null;function Zo(t){var i;(function(t){mi(t,"crypto",class{constructor(t){this.i=t;let i=null,e=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,e=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.co=e,this.ao=null}sha384(t){if("string"==typeof t&&(t=F(t)),!this.subtle||this.ao)return(this.ao||this.do()).then((i=>i(t)));try{return this.subtle.digest({name:"SHA-384"},t).then((t=>new Uint8Array(t)),(i=>(i.message&&i.message.indexOf("secure origin")<0&&yt().error(ao,"SubtleCrypto failed, fallback to closure lib.",i),this.do().then((()=>this.sha384(t))))))}catch(i){return Et().error(ao,"SubtleCrypto failed, fallback to closure lib.",i),this.do().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>lo(t)))}uniform(t){return this.sha384(t).then((t=>{let i=0;for(let e=2;e>=0;e--)i=(i+t[e])/256;return i}))}do(){return this.ao?this.ao:this.ao=Ki(this.i).preloadExtension("amp-crypto-polyfill").then((()=>_i(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){Tt(this.isPkcsAvailable());const i=this.co?(e=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):F(unescape(encodeURIComponent(e)))):t;var e;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,i,e){return Tt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,e)}})})(t),mi(t,"batched-xhr",oo),Vo(t),Do(t),Do(i=t),mi(i,"vsync",class{constructor(t){this.win=t,this.mo=ji(this.win),this._o=this.Ao(),this.As=[],this.Po=[],this.vo=[],this.Eo=[],this.Ce=!1,this.To=null,this.Ro=null,this.Io=this.Mo.bind(this),this.yo=new Or(this.win,this.Io,16),this.wo=new Or(this.win,this.Io,40),this.bo=this.Vo.bind(this),this.mo.isSingleDoc()?this.mo.getSingleDoc().onVisibilityChanged(this.bo):Fe(this.win.document,this.bo)}dispose(){ze(this.win.document,this.bo)}Vo(){this.Ce&&this.So()}run(t,i){this.As.push(t),this.vo.push(i||void 0),this.Rs()}runPromise(t,i){if(this.run(t,i),this.To)return this.To;const e=new n;return this.Ro=e.resolve,this.To=e.promise}createTask(t){return i=>{this.run(t,i)}}mutate(t){this.run({measure:void 0,mutate:t})}mutatePromise(t){return this.runPromise({measure:void 0,mutate:t})}measure(t){this.run({measure:t,mutate:void 0})}measurePromise(t){return new Promise((i=>{this.measure((()=>{i(t())}))}))}canAnimate(t){return this.xo(Tt(t))}xo(t){if($e(this.win.document)!=ue)return!1;if(this.mo.isSingleDoc())return this.mo.getSingleDoc().isVisible();if(t){const i=this.mo.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0}runAnim(t,i,e){return!!this.xo(t)&&(this.run(i,e),!0)}createAnimTask(t,i){return e=>this.runAnim(t,i,e)}runAnimMutateSeries(t,i,e){return this.xo(t)?new Promise(((s,n)=>{const r=Date.now();let o=0;const h=this.createAnimTask(t,{mutate:t=>{const l=Date.now()-r;i(l,l-o,t)?e&&l>e?n(new Error("timeout")):(o=l,h(t)):s()}});h({})})):Promise.reject(Ln())}Rs(){this.Ce||(this.Ce=!0,this.So())}So(){this.xo()?(this._o(this.Io),this.wo.schedule()):this.yo.schedule()}Mo(){this.wo.cancel(),this.Ce=!1;const{Ro:t,vo:i,As:e}=this;this.Ro=null,this.To=null,this.As=this.Po,this.vo=this.Eo;for(let t=0;t<e.length;t++)e[t].measure&&(Ko(e[t].measure,i[t])||(e[t].mutate=void 0));for(let t=0;t<e.length;t++)e[t].mutate&&Ko(e[t].mutate,i[t]);this.Po=e,this.Eo=i,this.Po.length=0,this.Eo.length=0,t&&t()}Ao(){const t=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(t)return t.bind(this.win);let i=0;return t=>{const e=Date.now(),s=Math.max(0,16-(e-i));i=e+s,this.win.setTimeout(t,s)}}}),function(t){mi(t,"xhr",ro)}(t),function(t){mi(t,"input",class{constructor(t){this.win=t,this.Oo=this.Co.bind(this),this.ko=this.No.bind(this),this.Do=null,this.Lo=null,this.Uo=null,this.$o="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.Fo=!1,this.win.document.addEventListener("keydown",this.Oo),this.win.document.addEventListener("mousedown",this.ko),this.Bo=!0,this.Ho=0,this.jo=new pe,this.zo=new pe,this.Go=new pe,this.$o&&(this.Bo=!this.$o,this.Do=this.qo.bind(this),Qs(t.document,"mousemove",this.Do))}setupInputModeClasses(t){this.onTouchDetected((i=>{this.Wo(t,"amp-mode-touch",i)}),!0),this.onMouseDetected((i=>{this.Wo(t,"amp-mode-mouse",i)}),!0),this.onKeyboardStateChanged((i=>{this.Wo(t,"amp-mode-keyboard-active",i)}),!0)}isTouchDetected(){return this.$o}onTouchDetected(t,i){return i&&t(this.isTouchDetected()),this.jo.add(t)}isMouseDetected(){return this.Bo}onMouseDetected(t,i){return i&&t(this.isMouseDetected()),this.zo.add(t)}isKeyboardActive(){return this.Fo}onKeyboardStateChanged(t,i){return i&&t(this.isKeyboardActive()),this.Go.add(t)}Wo(t,i,e){t.waitForBodyOpen().then((t=>{oe(this.win).mutate((()=>{t.classList.toggle(i,e)}))}))}Co(t){if(this.Fo)return;if(t.defaultPrevented)return;const{target:i}=t;i&&("INPUT"==i.tagName||"TEXTAREA"==i.tagName||"SELECT"==i.tagName||"OPTION"==i.tagName||i.hasAttribute("contenteditable"))||(this.Fo=!0,this.Go.fire(!0))}No(){this.Fo&&(this.Fo=!1,this.Go.fire(!1))}qo(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.Ko();let i;this.Uo||(this.Uo=this.Yo.bind(this),this.Lo=this.Ko.bind(this));const e=function(t,i,e,s){let n;const r=new Promise((i=>{n=Qs(t,"click",i,void 0)}));return r.then(n,n),s&&s(n),r}(this.win.document,0,0,(t=>{i=t}));return ie(this.win).timeoutPromise(300,e).then(this.Lo,(()=>{i&&i(),this.Uo()}))}Yo(){this.Bo=!0,this.zo.fire(!0)}Ko(){this.Ho++,this.Ho<=3&&Qs(this.win.document,"mousemove",this.Do)}})}(t),function(t){mi(t,"preconnect",class{constructor(t){this.Jo=t.document,this.Qo=t.document.head,this.Xo={},this.Zo={},this.Vh=Ji(t),this.Xo[dn(t.location.href).origin]=!0,this.tu=function(t){if(!Jo){const i=t.document.createElement("link"),e=i.relList;if(i.as="invalid-value",!e||!e.supports)return{};Jo={preconnect:e.supports("preconnect"),preload:e.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return Jo}(t),this.Se=ie(t)}url(t,i,e){t.whenFirstVisible().then((()=>{this.pi(t,i,e)}))}pi(t,i,e){if(!this.iu(i))return;const{origin:s}=dn(i),n=Date.now(),r=this.Xo[s];if(r&&n<r)return void(e&&(this.Xo[s]=n+Xo));const o=e?Xo:1e4;let h;this.Xo[s]=n+o,this.tu.preconnect||(h=this.Jo.createElement("link"),h.setAttribute("rel","dns-prefetch"),h.setAttribute("href",s),this.Qo.appendChild(h));const l=this.Jo.createElement("link");l.setAttribute("rel","preconnect"),l.setAttribute("href",s),l.setAttribute("referrerpolicy","origin"),this.Qo.appendChild(l),this.Se.delay((()=>{h&&h.parentNode&&h.parentNode.removeChild(h),l.parentNode&&l.parentNode.removeChild(l)}),1e4),this.su(t,s)}preload(t,i,e){this.iu(i)&&(this.Zo[i]||(this.Zo[i]=!0,this.url(t,i,!0),this.tu.preload&&("document"==e&&this.Vh.isSafari()||t.whenFirstVisible().then((()=>{this.eu(i)})))))}eu(t){const i=ks(this.Jo)(Qo);i.setAttribute("href",t),this.tu.onlyValidAs?i.as="fetch":i.as="",this.Qo.appendChild(i)}iu(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}su(t,i){if(this.tu.preconnect||!this.Vh.isSafari()&&!this.Vh.isIos())return;const e=Date.now();this.Xo[i]=e+Xo;const s=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(e-e%Xo),n=new XMLHttpRequest;n.open("HEAD",s,!0),n.withCredentials=!0,n.send()}})}(t)}var th=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function ih(t){if(null==t)return 0;const i=function(t){let i=t;for(;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(i=t);return i}(t),{nodeName:e}=i;return"IMG"===e||"AMP-IMG"===e?1:"VIDEO"===e||"AMP-VIDEO"===e?2:"AMP-CAROUSEL"===e?8:"AMP-BASE-CAROUSEL"===e?16:"AMP-AD"===e?4:!e.startsWith("AMP-")&&i.textContent?32:0}function eh(t){or(t.top)||mi(t,"iframeMessagingClient",sh.bind(null,t),!0)}function sh(t){const i=new class{constructor(t,i){this.i=t,this.Ht=at().rtvVersion||null,this.Zt=i||null,this.Qt=null,this.Xt=1,this.Yt=p(),this.hn()}getData(t,i,e){const s=t+"-result",n=this.Xt++,r=this.registerCallback(s,(t=>{t.messageId===n&&(r(),e(t.content))})),o={};o.payload=i,o.messageId=n,this.sendMessage(t,o)}makeRequest(t,i,e){const s=this.registerCallback(i,e);return this.sendMessage(t),s}requestOnce(t,i,e){const s=this.registerCallback(i,(t=>{s(),e(t)}));return this.sendMessage(t),s}registerCallback(t,i){return this.vn(t).add(i)}sendMessage(t,i){const e=function(t,i,e={},s=null){const n=e;return n.type=t,n.sentinel=i,sr+(s||"")+JSON.stringify(n)}(t,this.Qt,i,this.Ht);if(this.Zt)this.pn(this.Zt,e);else for(let t=0,i=this.i;t<10&&i!=this.i.top;t++)i=i.parent,this.pn(i,e),t++}pn(t,i){this.gn(t)?this.mn(t,i):t.postMessage(i,"*")}mn(t,i){t.postMessage(i,{"targetOrigin":"*","includeUserActivation":!0})}hn(){Gs(this.i,"message",(t=>{if(this.Zt&&t.source!=this.Zt)return;const i=function(t){if(!function(t){return"string"==typeof t&&t.startsWith(sr)&&-1!=t.indexOf("{")}(t))return null;L(t);const i=t.indexOf("{");return k(-1!=i),$(t.substr(i),(i=>{a(new Error(`MESSAGING: Failed to parse message: ${t}\n${i.message}`))}))}(Ys(t));i&&i.sentinel==this.Qt&&(i.origin=t.origin,this.Zt||(this.Zt=t.source),this.An(i.type,i))}),void 0)}setSentinel(t){this.Qt=t}vn(t){return t in this.Yt||(this.Yt[t]=new pe),this.Yt[t]}An(t,i){t in this.Yt&&this.Yt[t].fire(i)}gn(t){return 1==t.postMessage.length}}(t),e=$(t.name);let s=null;return e&&e._context&&(s=e._context.sentinel),i.setSentinel(s||function(t){return String(t.Math.random()).substr(2)}(t)),i}function nh(t,i,e){t.requestAnimationFrame((()=>{i.measure&&i.measure(e),i.mutate&&i.mutate(e)}))}function rh(t){const i=new class{constructor(t){this.win=t,this.Eh=new pe,this.Th=new pe;const i=t.innerWidth,e=t.innerHeight;this.In=Yt(0,0,i,e),this.dm=Yt(0,e+1,i,e),this.fm=function(t){return Ai(t,"iframeMessagingClient")}(t),this.pm=null,this.gm=H(this.win,(()=>{this.Eh.fire()}),100),this._m=or(this.win.top),this.Am=this._m?function(t){return t.ampInaboxPositionObserver=t.ampInaboxPositionObserver||new class{constructor(t){this.i=t,this.Mn=null,this.xn=function(t){const i=t.document;return i.scrollingElement?i.scrollingElement:i.body&&(e=t.navigator.userAgent,/WebKit/i.test(e)&&!/Edge/i.test(e))?i.body:i.documentElement;var e}(this.i),this.In=null}observe(t,i){if(!this.Mn){this.Mn=new pe;const t=H(this.i,(()=>{this.Tn(),this.Mn.fire()}),100);this.Tn(),this.i.addEventListener("scroll",t,!0),this.i.addEventListener("resize",t,!0)}return i(this.Vn(t)),this.Mn.add((()=>{i(this.Vn(t))}))}Tn(){this.In=this.getViewportRect()}Vn(t){return{"viewportRect":this.In,"targetRect":this.getTargetRect(t)}}getViewportRect(){const{xn:t,i:i}=this,e=t.scrollLeft||i.pageXOffset,s=t.scrollTop||i.pageYOffset;return Yt(Math.round(e),Math.round(s),i.innerWidth,i.innerHeight)}getTargetRect(t){let i=Qt(t.getBoundingClientRect());for(let e=0,s=t.ownerDocument.defaultView;e<10&&s&&s!=this.i&&s!=this.i.top;e++,s=s.parent){const t=Qt(s.frameElement.getBoundingClientRect());i=Xt(i,t.left,t.top)}return i}}(t),t.ampInaboxPositionObserver}(this.win.top):null,this.vm=this._m?function(t){return t.ampInaboxFrameOverlayManager=t.ampInaboxFrameOverlayManager||new class{constructor(t){this.i=t,this.Nn=!1,this.Fn=!1,this.jn=null,this.Cn()}Cn(){this.i.addEventListener("resize",(()=>this.onWindowResize()))}onWindowResize(){this.Nn&&(this.Fn=!0)}expandFrame(t,i){!function(t,i,e){nh(t,{measure(e){e.viewportSize={width:t.innerWidth,height:t.innerHeight},e.rect=Qt(i.getBoundingClientRect())},mutate(s){const{height:n,width:r}=s.viewportSize,o=Yt(0,0,r,n);var h;!function(t,i,e,s){const n=Le(e.width/2-i.width/2-i.left),r=Le(e.height/2-i.height/2-i.top);var o,h;ke(t,{"position":"fixed","top":Le(i.top),"right":Le(e.width-(i.left+i.width)),"left":Le(i.left),"bottom":Le(e.height-(i.top+i.height)),"height":Le(i.height),"width":Le(i.width),"transition":"transform 150ms ease","transform":(o=n,h=r,null==h?`translate(${Ne(o,Le)})`:`translate(${Ne(o,Le)}, ${Ne(h,Le)})`),"margin":0})}(i,s.rect,s.viewportSize),Se(i,{"pointer-events":"none"}),h=()=>{nh(t,{mutate(){Ue(i,["pointer-events"]),function(t){ke(t,{"position":"fixed","z-index":1e3,"left":0,"right":0,"top":0,"bottom":0,"width":"100vw","height":"100vh","transition":null,"transform":null,"margin":0,"border":0})}(i),e(s.rect,o)}})},setTimeout(h,200)}},{})}(this.i,t,((t,e)=>{this.Nn=!0,this.Fn=!1,this.jn=t,i(e)}))}collapseFrame(t,i){!function(t,i,e,s){nh(t,{mutate(){!function(t){Ue(t,["position","z-index","left","right","top","bottom","width","height","margin","border"])}(i),e(),nh(t,{measure(){s(Qt(i.getBoundingClientRect()))}})}})}(this.i,t,(()=>{this.Nn=!1,this.Fn||i(this.jn)}),(t=>{this.jn=t,this.Fn&&i(this.jn)}))}}(t),t.ampInaboxFrameOverlayManager}(this.win.top):null,this.Pm=null}connect(){return this._m?this.ym():this.bm()}bm(){return this.fm.makeRequest(nr,rr,(t=>{this.Em(t.viewportRect,t.targetRect)})),s()}ym(){return(t=this.win.document.documentElement,yi(t,"resources")).then((()=>{this.Pm=this.Pm||this.Am.observe(this.win.frameElement||this.getScrollingElement(),(t=>{this.Em(t.viewportRect,t.targetRect)}))}));var t}Em(t,i){const e=this.In;this.In=t,this.Tm(i),hh(this.In,e)&&this.Th.fire(),oh(this.In,e)&&this.gm()}getLayoutRect(t){const i=t.getBoundingClientRect(),{left:e,top:s}=i;return Yt(Math.round(e+this.dm.left),Math.round(s+this.dm.top),Math.round(i.width),Math.round(i.height))}onScroll(t){this.Eh.add(t)}onResize(t){this.Th.add(t)}getSize(){return{width:this.In.width,height:this.In.height}}getScrollTop(){return this.In.top}getScrollLeft(){return this.In.left}getScrollingElement(){return this.getBodyElement()}getScrollingElementScrollsLikeViewport(){return!0}supportsPositionFixed(){return!1}Tm(t){if(!t)return;const i=Xt(t,this.In.left,this.In.top);var e,s;(oh(e=i,s=this.dm)||hh(e,s))&&(this.dm=i,this.Rm())}getChildResources(){return te(this.win.document.documentElement).get()}Rm(){this.getChildResources().forEach((t=>t.measure()))}updateLightboxMode(t){return t?this.Mm():this.wm()}getRootClientRectAsync(){return this._m?this.ym().then((()=>this.Am.getTargetRect(this.win.frameElement||this.getScrollingElement()))):(this.pm||(this.pm=new Promise((t=>{this.fm.requestOnce(nr,rr,(i=>{this.pm=null,k(i.targetRect),t(i.targetRect)}))}))),this.pm)}Mm(){return this.Im().then((()=>this.xm()))}wm(){return this.Vm().then((()=>this.Sm()))}Im(){return function(t,i){return oe(t).runPromise({measure:i=>{i.width=t.innerWidth,i.height=t.innerHeight},mutate:t=>{Se(i,{"background":"transparent","left":"50%","top":"50%","right":"auto","bottom":"auto","position":"absolute","height":Le(t.height),"width":Le(t.width),"margin-top":Le(-t.height/2),"margin-left":Le(-t.width/2)})}},{})}(this.win,this.getBodyElement())}Sm(){return function(t,i){return oe(t).mutatePromise((()=>{Ue(i,["position","left","top","right","bottom","width","height","margin-left","margin-top"])}))}(this.win,this.getBodyElement())}xm(){return new Promise(((t,i)=>{if(this._m){const e=this.win.frameElement;e?this.vm.expandFrame(e,(i=>{this.Tm(i),t()})):i("Request to open lightbox failed; frame does not exist.")}else this.fm.requestOnce("full-overlay-frame","full-overlay-frame-response",(e=>{e.success?(this.Tm(e.boxRect),t()):i("Request to open lightbox rejected by host document")}))}))}Vm(){return new Promise(((t,i)=>{if(this._m){const e=this.win.frameElement;e?this.vm.collapseFrame(e,(i=>{this.Tm(i),t()})):i("Request to open lightbox failed; frame does not exist.")}else this.fm.requestOnce("cancel-full-overlay-frame","cancel-full-overlay-frame-response",(i=>{this.Tm(i.boxRect),t()}))}))}getBodyElement(){return C(this.win.document.body)}disconnect(){this.Pm&&(this.Pm(),this.Pm=null)}getScrollWidth(){return this.getScrollingElement().offsetWidth}getScrollHeight(){return this.getScrollingElement().offsetHeight}getContentHeight(){return this.getScrollHeight()}updatePaddingTop(){}hideViewerHeader(){}showViewerHeader(){}disableScroll(){}resetScroll(){}ensureReadyForElements(){}setScrollTop(){}contentHeightChanged(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}}(t.win);gi(t,"viewport",(function(){return new class{constructor(t,i){const{win:e}=t;this.ampdoc=t,this.cr=i,this.Oh=null,this.Fh=new pe,this.Eh=new pe,this.Th=new pe,this.cr.onScroll(this.Wh.bind(this)),this.cr.onResize(this.Kh.bind(this)),this.Jh=!1,this.ampdoc.onVisibilityChanged(this.Qh.bind(this)),this.Qh(),this.Om=this.dispose.bind(this),e.addEventListener("pagehide",this.Om);const s=e.document.documentElement;s.classList.add("i-amphtml-singledoc"),s.classList.add("i-amphtml-standalone"),jt(e)&&s.classList.add("i-amphtml-iframed")}dispose(){this.cr.disconnect(),this.ampdoc.win.removeEventListener("pagehide",this.Om)}ensureReadyForElements(){}getPaddingTop(){return 0}getScrollTop(){return this.cr.getScrollTop()}getScrollLeft(){return this.cr.getScrollLeft()}setScrollTop(t){}updatePaddingBottom(t){}getSize(){return this.cr.getSize()}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.cr.getScrollWidth()}getScrollHeight(){return this.cr.getScrollHeight()}getContentHeight(){return this.cr.getContentHeight()}contentHeightChanged(){}getRect(){if(null==this.Oh){const t=this.getSize();this.Oh=Yt(this.getScrollLeft(),this.getScrollTop(),t.width,t.height)}return this.Oh}getLayoutRect(t){return this.cr.getLayoutRect(t)}getClientRectAsync(t){const i=t.getBoundingClientRect();return this.cr.getRootClientRectAsync().then((t=>t?Xt(i,t.left,t.top):Qt(i)))}supportsPositionFixed(){return!1}isDeclaredFixed(t){return!1}scrollIntoView(t){return s()}animateScrollIntoView(t,i,e,n){return s()}animateScrollWithinParent(t,i,e,n,r){return s()}getScrollingElement(){return this.cr.getScrollingElement()}onChanged(t){return this.Fh.add(t)}onScroll(t){return this.Eh.add(t)}onResize(t){return this.Th.add(t)}enterLightboxMode(t,i){return this.enterOverlayMode(),this.cr.updateLightboxMode(!0)}leaveLightboxMode(t){return this.leaveOverlayMode(),this.cr.updateLightboxMode(!1)}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){}resetScroll(){}resetTouchZoom(){}disableTouchZoom(){return!1}restoreOriginalTouchZoom(){return!1}updateFixedLayer(){return s()}addToFixedLayer(t,i){return s()}removeFromFixedLayer(t){}createFixedLayer(t){}uo(){const t=this.getSize(),i=this.getScrollTop(),e=this.getScrollLeft();this.Fh.fire({relayoutAll:!1,top:i,left:e,width:t.width,height:t.height,velocity:0})}Wh(){this.Oh=null,this.cr.getScrollTop()<0||(this.uo(),this.Eh.fire())}Kh(){this.Oh=null;const t=this.getSize();this.uo(),this.Th.fire({relayoutAll:!1,width:t.width,height:t.height})}Qh(){const t=this.ampdoc.isVisible();t!=this.Jh&&(this.Jh=t,t?(this.cr.connect(),this.Kh()):this.cr.disconnect())}}(t,i)}),!0)}function oh(t,i){return t.left!=i.left||t.top!=i.top}function hh(t,i){return t.width!=i.width||t.height!=i.height}function lh(t){eh(t.win),function(t){gi(t,"url",class{constructor(t){const i=t.getRootNode(),e=i.ownerDocument||i;this.nu=e.createElement("a"),this.ru=null}parse(t,i){return fn(this.nu,t)}hu(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return bn(t)}getSourceOrigin(t){return Mn(this.hu(t))}getSourceUrl(t){return Rn(this.hu(t))}resolveRelativeUrl(t,i){return wn(t,this.hu(i))}assertHttpsUrl(t,i,e="source"){return vn(t,i,e)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return Rt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),dn(t).href}(t)}isProxyOrigin(t){return yn(this.hu(t))}isSecure(t){return An(this.hu(t))}getWinOrigin(t){return t.origin||this.hu(t.location.href).origin}getCdnUrlOnOrigin(t){if(yn(t))return t;const{hash:i,host:e,pathname:s,search:n}=this.hu(t),r=encodeURIComponent(e);return`${it}/c/${r}${s}${n}${i}`}},!0)}(t),function(t){gi(t,"templates",class{constructor(t){this.ji=t,this.ou={},this.uu={}}whenReady(t){return this.lu(t).then(No)}setHtmlForTemplate(t,i){return this.lu(t).then((t=>this.cu(t,i)))}renderTemplate(t,i){return this.lu(t).then((t=>this.au(t,i)))}renderTemplateAsString(t,i){return this.lu(t).then((t=>t.renderAsString(i)))}getTemplateRenderer(t){return this.lu(t).then((t=>({renderAsString:i=>t.renderAsString(i)})))}renderTemplateArray(t,i){return 0==i.length?Promise.resolve([]):this.lu(t).then((t=>i.map((i=>this.au(t,i)))))}findAndRenderTemplate(t,i,e){return this.renderTemplate(this.findTemplate(t,e),i)}findAndSetHtmlForTemplate(t,i,e){return this.setHtmlForTemplate(this.findTemplate(t,e),i)}findAndRenderTemplateArray(t,i,e){return this.renderTemplateArray(this.findTemplate(t,e),i)}hasTemplate(t,i){return!!this.maybeFindTemplate(t,i)}findTemplate(t,i){const e=this.maybeFindTemplate(t,i);Rt(e,"Template not found for %s",t);const s=e.tagName;return Rt("TEMPLATE"==s||"SCRIPT"==s&&"text/plain"===e.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),e}maybeFindTemplate(t,i){const e=t.getAttribute("template");return e?zt(t).getElementById(e):i?Vt(t,i):t.querySelector('template[type], script[type="text/plain"]')}lu(t){const i=t[Lo];if(i)return Promise.resolve(i);let e="";const{tagName:s}=t;"TEMPLATE"==s?e=t.getAttribute("type"):"SCRIPT"==s&&(e=t.getAttribute("template")),Rt(e,"Type must be specified: %s",t);let n=t.__AMP_WAIT_;return n||(n=this.du(t,e).then((i=>{const e=i,s=t[Lo]=new e(t,this.ji.win);return delete t.__AMP_WAIT_,s})),t.__AMP_WAIT_=n,n)}du(t,i){if(this.ou[i])return this.ou[i];const e=new n,{promise:s,resolve:r}=e;return this.ou[i]=s,this.uu[i]=r,s}fu(t,i){if(this.ou[t]){const e=this.uu[t];Rt(e,"Duplicate template type: %s",t),delete this.uu[t],e(i)}else this.ou[t]=Promise.resolve(i)}au(t,i){return t.render(i)}cu(t,i){return t.setHtml(i)}})}(t),gi(t,"documentInfo",class{constructor(t){this.ji=t,this.pu=null,this.mu=null}get(){if(this.pu)return this.pu;const t=this.ji,i=Rn(t.getUrl()),e=t.getRootNode();let s=e&&e.AMP&&e.AMP.canonicalUrl;if(!s){const t=e.querySelector("link[rel=canonical]");s=t?dn(t.href).href:i}const n=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),o=function(t){const i=p();if(t.head){const e=t.head.querySelectorAll("link[rel]");for(let t=0;t<e.length;t++){const s=e[t],{href:n}=s,r=s.getAttribute("rel");r&&n&&r.split(/\s+/).forEach((t=>{if(-1!=uo.indexOf(t))return;let e=i[t];e?(P(e)||(e=i[t]=[e]),e.push(n)):i[t]=n}))}}return i}(t.win.document),h=function(t){const i=t.head.querySelector('meta[name="viewport"]');return i?i.getAttribute("content"):null}(t.win.document),l=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,yn(i=cn(i))?i.pathname.split("/",2)[1]:null))return null;var i;const e=W(dn(t.win.location.href).search).amp_r;return void 0===e?null:W(e)}(t);return this.pu={get sourceUrl(){return Rn(t.getUrl())},canonicalUrl:s,pageViewId:n,get pageViewId64(){return this.mu||(this.mu=function(t){const i=function(t){return z(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}(t);if("string"==typeof i)return(e=t,_i(e,"crypto")).sha384Base64(i);var e;{const t=i;return r((()=>lo(t).replace(/\.+$/,"")))}}(t.win)),this.mu},linkRels:o,viewport:h,replaceParams:l}}}),function(t){gi(t,"cid",class{get(){return Promise.resolve(null)}optOut(){}})}(t),function(t){gi(t,"viewer",class{constructor(t){this.ji=t}getAmpDoc(){return this.ji}getParam(t){return this.ji.getParam(t)}hasCapability(){return!1}isEmbedded(){return!1}isWebviewEmbedded(){return!1}isCctEmbedded(){return!1}isProxyOrigin(){return!1}maybeUpdateFragmentForCct(){}isRuntimeOn(){return!0}toggleRuntime(){}onRuntimeState(){return()=>{}}isOvertakeHistory(){return!1}getResolvedViewerUrl(){return this.ji.win.location.href}maybeGetMessagingOrigin(){return null}getUnconfirmedReferrerUrl(){return this.ji.win.document.referrer}getReferrerUrl(){return Promise.resolve(this.getUnconfirmedReferrerUrl())}isTrustedViewer(){return Promise.resolve(!1)}getViewerOrigin(){return Promise.resolve("")}onMessage(){return()=>{}}onMessageRespond(){return()=>{}}receiveMessage(){}setMessageDeliverer(){}maybeGetMessageDeliverer(){return null}sendMessage(){}sendMessageAwaitResponse(){return s()}broadcast(){return Promise.resolve(!1)}onBroadcast(){return()=>{}}whenMessagingReady(){return null}replaceUrl(){}},!0)}(t),rh(t),function(t){gi(t,"hidden-observer",class{constructor(t){this.ll=t.getRootNode();const i=this.ll.ownerDocument||this.ll;this.i=Tt(i.defaultView),this.cl=null,this.al=null}add(t){this.dl();const i=this.al.add(t);return()=>{i(),0===this.al.getHandlerCount()&&this.dispose()}}dl(){if(this.cl)return;this.al=new pe;const t=new this.i.MutationObserver((t=>{t&&this.al.fire(t)}));this.cl=t,t.observe(this.ll,co)}dispose(){this.cl&&(this.cl.disconnect(),this.al.removeAll(),this.cl=null,this.al=null)}})}(t),function(t){gi(t,"history",go)}(t),function(t){gi(t,"resources",class{constructor(t){this.ji=t,this.win=t.win,this.Ei=[],this.pl=0,this.Le=new Or(this.win,this.km.bind(this),70),this.Cm=new pe,this.Fl=new n,this.Lm=null,(t=>_i(this.win,"input"))().setupInputModeClasses(t),"inabox"!=at(this.win).runtime&&t.onVisibilityChanged((()=>{switch(t.getVisibilityState()){case de:this.Ei.forEach((t=>t.pause()));break;case ue:this.Ei.forEach((t=>t.resume())),this.schedulePass()}})),this.xl=[],this.gl=!1,this.ji.whenReady().then((()=>{this.gl=!0,this.Wl(),this.schedulePass(1)}))}dispose(){this.Ei.forEach((t=>t.unload())),this.Ei.length=0,this.Lm&&(this.Lm.disconnect(),this.Lm=null)}get(){return this.Ei.slice(0)}getAmpdoc(){return this.ji}getResourceForElement(t){return $n.forElement(t)}getResourceForElementOptional(t){return $n.forElementOptional(t)}getScrollDirection(){return 1}add(t){const i=new $n(++this.pl,t,this);this.Ei.push(i)}upgraded(t){const i=$n.forElement(t);this.xl.push(i),this.Wl()}remove(t){const i=$n.forElementOptional(t);if(!i)return;this.Lm&&this.Lm.unobserve(t);const e=this.Ei.indexOf(i);-1!==e&&this.Ei.splice(e,1)}scheduleLayoutOrPreload(t){this.Le.schedule()}schedulePass(t){return this.Le.schedule(t)}updateOrEnqueueMutateTask(t,i){}schedulePassVsync(){}onNextPass(t){this.Cm.add(t)}ampInitComplete(){}updateLayoutPriority(t,i){}setRelayoutTop(t){}maybeHeightChanged(){}whenFirstPass(){return this.Fl.promise}km(){const t=Date.now();this.Ei.forEach((t=>{t.isLayoutPending()&&!t.element.R1()&&t.measure()})),this.Ei.forEach((i=>{!i.element.R1()&&2===i.getState()&&i.isDisplayed()&&(i.layoutScheduled(t),i.startLayout())})),this.ji.signals().signal(Fn),this.Cm.fire(),this.Fl.resolve()}Wl(){for(let t=this.xl.length-1;t>=0;t--){const i=this.xl[t];(this.gl||Ht(i.element,this.ji.getRootNode()))&&(this.xl.splice(t,1),(i.build()||s()).then((()=>this.schedulePass())))}}})}(t),function(t){gi(t,"owners",class{constructor(t){this.Ei=te(t)}setOwner(t,i){$n.setOwner(t,i)}schedulePreload(t,i){this._c(this.Ei.getResourceForElement(t),!1,xo(i))}scheduleLayout(t,i){this._c(this.Ei.getResourceForElement(t),!0,xo(i))}schedulePause(t,i){const e=this.Ei.getResourceForElement(t);i=xo(i),this.Ac(e,i,(t=>{t.pause()}))}scheduleResume(t,i){const e=this.Ei.getResourceForElement(t);i=xo(i),this.Ac(e,i,(t=>{t.resume()}))}scheduleUnlayout(t,i){const e=this.Ei.getResourceForElement(t);i=xo(i),this.Ac(e,i,(t=>{t.unlayout()}))}requireLayout(t,i){const e=[];return this.gc(t,(t=>{e.push(t.element.ensureLoaded())})),Promise.all(e)}Ac(t,i,e){for(const s of i)Tt(t.element.contains(s)),this.gc(s,e)}gc(t,i){if(t.classList.contains("i-amphtml-element")){i(this.Ei.getResourceForElement(t));const e=t.getPlaceholder();e&&this.gc(e,i)}else{const e=t.getElementsByClassName("i-amphtml-element"),s=[];for(let t=0;t<e.length;t++){const n=e[t];let r=!1;for(let t=0;t<s.length;t++)if(s[t].contains(n)){r=!0;break}r||(s.push(n),i(this.Ei.getResourceForElement(n)))}}}_c(t,i,e){this.Ac(t,e,(i=>{i.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){gi(t,"mutator",class{constructor(t){this.Ei=te(t),this.uh=oe(t.win)}forceChangeSize(t,i,e,s,n){this.requestChangeSize(t,i,e,n).then((()=>{s&&s()}))}requestChangeSize(t,i,e,s){return this.mutateElement(t,(()=>{this.Ei.getResourceForElement(t).changeSize(i,e,s)}))}expandElement(t){this.Ei.getResourceForElement(t).completeExpand(),this.Ei.schedulePass()}attemptCollapse(t){return this.mutateElement(t,(()=>{this.Ei.getResourceForElement(t).completeCollapse()}))}collapseElement(t){this.Ei.getResourceForElement(t).completeCollapse(),this.Ei.schedulePass()}measureElement(t){return this.uh.measurePromise(t)}mutateElement(t,i){return this.measureMutateElement(t,null,i)}measureMutateElement(t,i,e){return this.uh.runPromise({measure:()=>{i&&i()},mutate:()=>{e(),this.Ei.schedulePass()}})}})}(t),function(t){gi(t,"url-replace",(function(t){return new class{constructor(t,i){this.ampdoc=t,this.jr=i}expandStringSync(t,i,e){return new $o(this.jr,i,void 0,!0,e,!0).expand(t)}expandStringAsync(t,i,e){return new $o(this.jr,i,void 0,void 0,e,!0).expand(t)}expandUrlSync(t,i,e){return this.Ic(t,new $o(this.jr,i,void 0,!0,e).expand(t))}expandUrlAsync(t,i,e,s){return new $o(this.jr,i,void 0,void 0,e,s).expand(t).then((i=>this.Ic(t,i)))}expandInputValueAsync(t){return this.Mc(t,!1)}expandInputValueSync(t){return this.Mc(t,!0)}Mc(t,i){Tt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const e=this.yc(t);if(!e)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const s=new $o(this.jr,void 0,void 0,i,e).expand(t["amp-original-value"]||t.value);return i?t.value=s:s.then((i=>(t.value=i,i)))}yc(t,i){const e=t.getAttribute("data-amp-replace");if(!e)return;const s={};return e.trim().split(/\s+/).forEach((t=>{i&&!m(i,t)||(s[t]=!0)})),s}Ot(t){const i=Wi(this.ampdoc);if(t.origin==dn(i.canonicalUrl).origin||t.origin==dn(i.sourceUrl).origin)return!0;const e=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(e){const i=e.trim().split(/\s+/);for(let e=0;e<i.length;e++)if(t.origin==dn(i[e]).origin)return!0}return!1}maybeExpandLink(t,i){Tt("A"==t.tagName);const e=t;let s=e.getAttribute("data-amp-addparams")||"";const n=this.yc(e,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!s&&!i)return;let r=e["amp-original-href"]||e.getAttribute("href");const o=dn(r);null==e["amp-original-href"]&&(e["amp-original-href"]=r);const h=this.Ot(o);if(s&&(s=h?this.wc(s,n):s,r=gn(r,W(s))),!h)return e.href=r;if(i){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};i=this.expandUrlSync(i,void 0,t)}r=gn(r,W(i))}return r=this.wc(r,n),e.href=r}wc(t,i){return i?this.expandUrlSync(t,void 0,i):t}collectVars(t,i){const e=Object.create(null);return new $o(this.jr,i,e).expand(t).then((()=>e))}collectDisallowedVarsSync(t){const i=t.getAttribute("src"),e=new $o(this.jr).getMacroNames(i),s=this.yc(t);return s?e.filter((t=>!s[t])):e}Ic(t,i){return dn(i).protocol!=dn(t).protocol?(yt().error(jo,"Illegal replacement of the protocol: ",t),t):(Rt(bn(i),"The replacement url has invalid protocol: %s",i),i)}getVariableSource(){return this.jr}}(t,new class extends class{constructor(t){this.ampdoc=t,this.bc=Object.create(null),this.Vc=!1,this.Sc()}Ee(){this.initialize(),this.Vc=!0}initialize(){}get(t){return this.Vc||this.Ee(),this.bc[t]}set(t,i){return Tt(-1==t.indexOf("RETURN")),this.bc[t]=this.bc[t]||{sync:void 0,async:void 0},this.bc[t].sync=i,this}setAsync(t,i){return Tt(-1==t.indexOf("RETURN")),this.bc[t]=this.bc[t]||{sync:void 0,async:void 0},this.bc[t].async=i,this}setBoth(t,i,e){return this.set(t,i).setAsync(t,e)}getExpr(t,i){this.Vc||this.Ee();const e=A(A({},this.bc),t);return this.xc(Object.keys(e),i)}xc(t,i){if(this.Sc()&&(t=t.filter((t=>this.Sc().includes(t)))),i&&(t=t.filter((t=>i[t]))),0===t.length)return/_^/g;t.sort(((t,i)=>i.length-t.length));const e=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+e+")","g")}Sc(){return this.Oc?this.Oc:this.ampdoc.isSingleDoc()&&kr(this.ampdoc.getRootNode())?(this.Oc=[""],this.Oc):void 0}}{constructor(t){super(t),this.Cc=null,this.kc={}}Nc(t,i,e){return this.setBoth(t,(()=>Ho(this.ampdoc.win,i,e)),(()=>zo(this.ampdoc.win,i,e)))}initialize(){const{win:t}=this.ampdoc,i=this.ampdoc.getHeadNode(),e=he(this.ampdoc);se(this.ampdoc).then((t=>{this.Cc=t})),this.set("RANDOM",(()=>Math.random()));const n=Object.create(null);this.set("COUNTER",(t=>n[t]=1+(0|n[t]))),this.set("CANONICAL_URL",(()=>this.Dc().canonicalUrl)),this.set("CANONICAL_HOST",(()=>dn(this.Dc().canonicalUrl).host)),this.set("CANONICAL_HOSTNAME",(()=>dn(this.Dc().canonicalUrl).hostname)),this.set("CANONICAL_PATH",(()=>dn(this.Dc().canonicalUrl).pathname)),this.setAsync("DOCUMENT_REFERRER",(()=>re(this.ampdoc).getReferrerUrl())),this.setAsync("EXTERNAL_REFERRER",(()=>re(this.ampdoc).getReferrerUrl().then((i=>i?dn(Rn(i)).hostname===Be.getHostname(t)?null:i:null)))),this.set("TITLE",(()=>{const i=t.document;return i.originalTitle||i.title})),this.set("AMPDOC_URL",(()=>Pn(this.Lc(t.location.href)))),this.set("AMPDOC_HOST",(()=>{const i=dn(t.location.href);return i&&i.host})),this.set("AMPDOC_HOSTNAME",(()=>{const i=dn(t.location.href);return i&&i.hostname}));const r=()=>{const t=this.Dc();return Pn(this.Lc(t.sourceUrl))};this.setBoth("SOURCE_URL",(()=>r()),(()=>vo().then((()=>r())))),this.set("SOURCE_HOST",(()=>dn(this.Dc().sourceUrl).host)),this.set("SOURCE_HOSTNAME",(()=>dn(this.Dc().sourceUrl).hostname)),this.set("SOURCE_PATH",(()=>dn(this.Dc().sourceUrl).pathname)),this.set("PAGE_VIEW_ID",(()=>this.Dc().pageViewId)),this.setAsync("PAGE_VIEW_ID_64",(()=>this.Dc().pageViewId64)),this.setBoth("QUERY_PARAM",((t,i="")=>this.Uc(t,i)),((t,i="")=>vo().then((()=>this.Uc(t,i))))),this.set("FRAGMENT_PARAM",((t,i="")=>this.$c(t,i)));let o=null;this.setBoth("CLIENT_ID",(t=>o?o[t]:null),((t,e,n,r)=>{Rt(t,"The first argument to CLIENT_ID, the fallback Cookie name, is required");let h=s();return e&&(h=(t=>Ni(t,"userNotificationManager","amp-user-notification"))(i).then((t=>t.get(e)))),qi(this.ampdoc).then((i=>(r="true"==r,i.get({scope:t,createCookieIfNotPresent:!0,cookieName:n||void 0,disableBackup:r},h)))).then((i=>(o||(o=Object.create(null)),i&&"_ga"==(n||t)&&("string"==typeof i?i=i.replace(/^(GA1|1)\.[\d-]+\./,""):Et().error(jo,"non-string cid, what is it?",Object.keys(i))),o[t]=i,i)))})),this.setAsync("VARIANT",(t=>this.Fc((i=>{const e=i[t];return Rt(void 0!==e,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+t),null===e?"none":e}),"VARIANT"))),this.setAsync("VARIANTS",(()=>this.Fc((t=>{const i=[];for(const e in t){const s=t[e];i.push(e+"."+(s||"none"))}return i.join("!")}),"VARIANTS"))),this.setBoth("AMP_GEO",(t=>Wo(this.Cc,t)),(t=>this.Bc((i=>Wo(i,t)),"AMP_GEO"))),this.set("TIMESTAMP",Go("getTime")),this.set("TIMESTAMP_ISO",Go("toISOString")),this.set("TIMEZONE",Go("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(()=>e.getScrollHeight())),this.set("SCROLL_WIDTH",(()=>e.getScrollWidth())),this.set("VIEWPORT_HEIGHT",(()=>e.getHeight())),this.set("VIEWPORT_WIDTH",(()=>e.getWidth()));const{screen:h}=t;this.set("SCREEN_WIDTH",qo(h,"width")),this.set("SCREEN_HEIGHT",qo(h,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",qo(h,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",qo(h,"availWidth")),this.set("SCREEN_COLOR_DEPTH",qo(h,"colorDepth")),this.set("DOCUMENT_CHARSET",(()=>{const i=t.document;return i.characterSet||i.charset})),this.set("BROWSER_LANGUAGE",(()=>{const i=t.navigator;return(i.language||i.userLanguage||i.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(()=>t.navigator.userAgent)),this.setBoth("UACH",(t=>{var i;return null!==(i=this.kc[t])&&void 0!==i?i:""}),(i=>this.Hc(i,t))),this.Nc("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Nc("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Nc("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Nc("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Nc("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Nc("REDIRECT_TIME","navigationStart","fetchStart"),this.Nc("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Nc("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(()=>this.jc((t=>t.getAccessReaderId()),"ACCESS_READER_ID"))),this.setAsync("AUTHDATA",(t=>(Rt(t,"The first argument to AUTHDATA, the field, is required"),this.jc((i=>i.getAuthdataField(t)),"AUTHDATA")))),this.setAsync("VIEWER",(()=>re(this.ampdoc).getViewerOrigin().then((t=>null==t?"":t)))),this.setAsync("TOTAL_ENGAGED_TIME",(()=>Hi(i).then((t=>t.getTotalEngagedTime())))),this.setAsync("INCREMENTAL_ENGAGED_TIME",((t,e)=>Hi(i).then((i=>i.getIncrementalEngagedTime(t,"false"!==e))))),this.set("NAV_TIMING",((i,e)=>(Rt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),Ho(t,i,e)))),this.setAsync("NAV_TIMING",((i,e)=>(Rt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),zo(t,i,e)))),this.set("NAV_TYPE",(()=>Bo(t,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>Bo(t,"redirectCount"))),this.set("AMP_VERSION",(()=>"2405231944000")),this.set("BACKGROUND_STATE",(()=>this.ampdoc.isVisible()?"0":"1")),this.setAsync("VIDEO_STATE",((t,i)=>{return(e=this.ampdoc,vi(e,"video-manager")).getVideoStateProperty(t,i);var e})),this.setAsync("AMP_STATE",(t=>{const i=this.ampdoc.getRootNode(),e=i.documentElement||i;return Gi(e).then((i=>i&&i.getStateValue(t)||""))}))}Lc(t){const{replaceParams:i}=this.Dc();return i?function(t,i){const e=W(dn(t).search),s={},n=Object.keys(i);for(let t=0;t<n.length;t++)m(e,n[t])||(s[n[t]]=i[n[t]]);return gn(t,s)}(En(t),i):t}Dc(){return Wi(this.ampdoc)}jc(t,i){const e=this.ampdoc.getHeadNode();return Promise.all([$i(e),Fi(e)]).then((e=>{const s=e[0],n=e[1],r=s||n;return r?s&&n?t(n)||t(s):t(r):(yt().error(jo,"Access or subsciptions service is not installed to access: ",i),null)}))}Uc(t,i){Rt(t,"The first argument to QUERY_PARAM, the query string param is required");const e=W(dn(En(this.ampdoc.win.location.href)).search),{replaceParams:s}=this.Dc();return void 0!==e[t]?e[t]:s&&void 0!==s[t]?s[t]:i}$c(t,i){Rt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),Rt("string"==typeof t,"param should be a string");const e=K(this.ampdoc.win);return void 0===e[t]?i:e[t]}Fc(t,i){return(e=this.ampdoc.getHeadNode(),Di(e,"variant","amp-experiment",!0)).then((t=>(Rt(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()))).then((i=>t(i)));var e}Bc(t,i){return null!==this.Cc?t(this.Cc):se(this.ampdoc.getHeadNode()).then((e=>(Rt(e,"To use variable %s, amp-geo should be configured",i),this.Cc=e,t(e))))}Hc(t,i){return t in this.kc?Promise.resolve(this.kc[t]):(null===(e=i.navigator)||void 0===e||null===(s=e.userAgentData)||void 0===s||null===(n=s.getHighEntropyValues([t]))||void 0===n?void 0:n.then((i=>{const e="object"!=typeof i[t]?i[t]:JSON.stringify(i[t]);return this.kc[t]=e,e})))||Promise.resolve("");var e,s,n}}(t))}))}(t),function(t){gi(t,"action",class{constructor(t,i){this.ampdoc=t,this.ll=i||t.getRootNode(),this.zc=this.ampdoc.isSingleDoc()&&kr(this.ll),this.Wr=this.zc?$r:null,this.Gc=p(),this.qc=p(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}addEvent(t){if("tap"==t)this.ll.addEventListener("click",(i=>{if(!i.defaultPrevented){const e=i.target;this.trigger(e,t,i,3)}})),this.ll.addEventListener("keydown",(i=>{const{key:e,target:s}=i,n=s;if("Enter"==e||" "==e){const e=n.getAttribute("role"),s=e&&m(Fr,e.toLowerCase());!i.defaultPrevented&&s&&this.trigger(n,t,i,3)&&i.preventDefault()}}));else if("submit"==t)this.ll.addEventListener(t,(i=>{const e=i.target;this.trigger(e,t,i,3)}));else if("change"==t)this.ll.addEventListener(t,(i=>{const e=i.target;this.Wc(i),this.trigger(e,t,i,3)}));else if("input-debounced"==t){const i=B(this.ampdoc.win,(i=>{const e=i.target;this.trigger(e,t,i,3)}),300);this.ll.addEventListener("input",(t=>{const e=new Br(t);this.Wc(e),i(e)}))}else if("input-throttled"==t){const i=H(this.ampdoc.win,(i=>{const e=i.target;this.trigger(e,t,i,3)}),100);this.ll.addEventListener("input",(t=>{const e=new Br(t);this.Wc(e),i(e)}))}else"valid"!=t&&"invalid"!=t||this.ll.addEventListener(t,(i=>{const e=i.target;this.trigger(e,t,i,3)}))}addGlobalTarget(t,i){this.Gc[t]=i}addGlobalMethodHandler(t,i,e=2){this.qc[t]={handler:i,minTrust:e}}trigger(t,i,e,s,n){return this.Kc(t,i,e,s,n)}execute(t,i,e,s,n,r,o){const h=new zr(t,i,e,s,n,r,o);this.Yc(h)}installActionHandler(t,i){if(Tt(Hr(t.getAttribute("id")||"")||t.tagName.toLowerCase()in Ur),t[Dr])return void Et().error(Cr,`Action handler already installed for ${t}`);t[Dr]=i;const e=t[Nr];P(e)&&ie(Mt(t)).delay((()=>{e.forEach((t=>{try{i(t)}catch(i){Et().error(Cr,"Action execution failed:",t,i)}})),t[Nr].length=0}),1)}hasAction(t,i,e){return!!this.Jc(t,i,e)}hasResolvableAction(t,i,e){const s=this.Jc(t,i,e);return!!s&&s.actionInfos.some((t=>{const{target:i}=t;return!!this.Qc(i)}))}hasResolvableActionForTarget(t,i,e,s){const n=this.Jc(t,i,s);return!!n&&n.actionInfos.some((t=>{const{target:i}=t;return this.Qc(i)==e}))}Qc(t){return this.Gc[t]?this.ll:this.ll.getElementById(t)}setAllowlist(t){Tt(t.every((t=>t.tagOrTarget&&t.method))),this.Wr=t}addToAllowlist(t,i,e){e&&e.includes("email")!==this.zc||(this.Wr||(this.Wr=[]),P(i)||(i=[i]),i.forEach((i=>{this.Wr.some((e=>e.tagOrTarget==t&&e.method==i))||this.Wr.push({tagOrTarget:t,method:i})})))}Kc(t,i,e,s,n){const r=this.Jc(t,i);if(!r)return!1;const o=Math.random();let h=null;return r.actionInfos.forEach((l=>{const{args:a,method:u,str:c,target:d}=l,f=function(t,i,e){if(!t)return t;const s=e||{};if(i){const t=function(t){return t.detail}(i);t&&(s.event=t)}const n=p();return Object.keys(t).forEach((i=>{let e=t[i];if("object"==typeof e&&e.expression){const t=e.expression,i=function(t,i){if("."==i)return t;const e=i.split(".");let s=t;for(const t of e){if(!(t&&s&&void 0!==s[t]&&"object"==typeof s&&m(s,t))){s=void 0;break}s=s[t]}return s}(s,t);e=void 0===i?null:i}s[e]?n[i]=s[e]:n[i]=e})),n}(a,e,n),g=()=>{const n=this.Qc(d);if(!n)return void this.Xc(`Target "${d}" not found for action [${c}].`);const h=new zr(n,u,f,t,r.node,e,s,i,n.tagName||d,o);return this.Yc(h)};h=h?h.then(g):g()})),r.actionInfos.length>=1}Xc(t,i){if(i){const e=yt().createError(`[Action] ${t}`);throw Cn(e,i),e}yt().error(Cr,t)}Yc(t){const{method:i,tagOrTarget:e}=t;if(this.Wr&&!function(t,i){let{method:e}=t;const{node:s,tagOrTarget:n}=t;e===Zn&&"function"==typeof s.getDefaultActionAlias&&(e=s.getDefaultActionAlias());const r=e.toLowerCase(),o=n.toLowerCase();return i.some((t=>(t.tagOrTarget.toLowerCase()===o||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.Wr))return this.Xc(`"${e}.${i}" is not allowlisted ${JSON.stringify(this.Wr)}.`),null;const s=this.Gc[e];if(s)return s(t);const n=t.node,r=this.qc[i];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const o=n.tagName.toLowerCase();if(Hr(o))return n.enqueAction?n.enqueAction(t):this.Xc(`Unrecognized AMP element "${o}".`,n),null;const h=Ur[o];if(Hr(n.getAttribute("id")||"")||h&&h.indexOf(i)>-1){const i=n[Dr];return i?i(t):(n[Nr]=n[Nr]||[],n[Nr].push(t)),null}return this.Xc(`Target (${e}) doesn't support "${i}" action.`,t.caller),null}Jc(t,i,e){let s=t;for(;s;){if(e&&s==e)return null;const t=this.Zc(s,i);if(t&&!(n=s).disabled&&(":disabled",!n.matches(":disabled")))return{node:s,actionInfos:Tt(t)};s=s.parentElement}var n;return null}Zc(t,i){const e=this.ta(t,i);return e&&e[i]||null}ta(t,i){let e=t[Lr];return void 0===e&&(e=null,t.hasAttribute("on")?(e=Gr(t.getAttribute("on"),t),t[Lr]=e):t.hasAttribute("execute")&&(e=Gr(`${i}:${t.getAttribute("execute")}`,t),t[Lr]=e)),e}setActions(t,i){t.setAttribute("on",i),delete t[Lr]}Wc(t){const i=p(),{target:e}=t;if(void 0!==e.value&&(i.value=e.value),"INPUT"==e.tagName&&(i.valueAsNumber=Number(e.value)),void 0!==e.checked&&(i.checked=e.checked),void 0===e.min&&void 0===e.max||(i.min=e.min,i.max=e.max),e.files&&(i.files=v(e.files).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(i).length>0)try{t.detail=i}catch(t){}}},!0)}(t),function(t){gi(t,"standard-actions",class{constructor(t){this.ampdoc=t;const i=t.getHeadNode();this.ia=Qi(t),this.Cl=he(t),this.sa(zi(i)),this.ea()}sa(t){t.addGlobalTarget("AMP",this.na.bind(this)),t.addGlobalMethodHandler("hide",this.ra.bind(this)),t.addGlobalMethodHandler("show",this.ha.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.oa.bind(this)),t.addGlobalMethodHandler("scrollTo",this.ua.bind(this)),t.addGlobalMethodHandler("focus",this.la.bind(this)),t.addGlobalMethodHandler("toggleClass",this.ca.bind(this)),t.addGlobalMethodHandler("copy",this.aa.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.da.bind(this))}ea(){this.fa()&&this.ampdoc.waitForBodyOpen().then((t=>{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))}fa(){var t,i;try{const t=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(t)return"yes"===t}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches}na(t){if(!t.satisfiesTrust(2))return null;const{args:i,method:e,node:s}=t,n=Mt(s);switch(e){case"pushState":case"setState":const e=s.nodeType===Node.DOCUMENT_NODE?s.documentElement:s;return Gi(e).then((i=>(Rt(i,"AMP-BIND is not installed."),i.invoke(t))));case"navigateTo":return this.pa(t);case"closeOrNavigateTo":return this.ma(t);case"scrollTo":return Rt(i.id,"AMP.scrollTo must provide element ID"),t.node=Ri(s).getElementById(i.id),this.ua(t);case"goBack":return Yi(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return n.print(),null;case"copy":return this.aa(t);case"optoutOfCid":return qi(this.ampdoc).then((t=>t.optOut())).catch((t=>{Et().error(ko,"Failed to opt out of CID",t)}));case"toggleTheme":return this._a(),null}throw yt().createError("Unknown AMP action ",e)}aa(t){const{args:i,node:e}=t,s=Mt(e),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=i.text.trim();else{var o;const i=C(t.node);r=(null!==(o=i.value)&&void 0!==o?o:i.textContent).trim()}const h=function(t,i,e){const n=Ws(s,`${t}`,{data:{type:i}});zi(e.caller).trigger(e.caller,t,n,3)};var l,a,u;null!==(a=(l=s.document).defaultView)&&void 0!==a&&null!==(u=a.navigator)&&void 0!==u&&u.clipboard||So(l)?function(t,i,e,s){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(i).then(e,s):So(t.document)&&function(t,i){var e;let s=!1;const n=t.document,r=n.createElement("textarea");ke(r,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),r.value=i,r.readOnly=!0,r.contentEditable="true",n.body.appendChild(r),null===(e=t.getSelection())||void 0===e||e.removeAllRanges(),r.focus(),r.setSelectionRange(0,i.length);try{s=n.execCommand("copy")}catch(t){}return Ut(r),s}(t,i)?e():s()}(s,r,(()=>{h("copy-success","success",t)}),(()=>{h(n,"error",t)})):h(n,"unsupported",t)}pa(t){const{args:i,caller:e,method:n,node:r}=t,o=Mt(r);let h=s();return e.tagName.startsWith("AMP-")&&(h=e.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),h.then((()=>{var t;(t=this.ampdoc,vi(t,"navigation")).navigateTo(o,i.url,`AMP.${n}`,{target:i.target,opener:i.opener})}),(t=>{yt().error(ko,t)}))}_a(){this.ampdoc.waitForBodyOpen().then((t=>{try{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.fa()?(t.classList.remove(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(t.classList.add(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))}ma(t){const{node:i}=t,e=Mt(i),n=e.parent!=e;let r=!1;return e.opener&&this.ampdoc.isSingleDoc()&&!n&&(e.close(),r=e.closed),r?s():this.pa(t)}ua(t){const i=t.node,{args:e}=t;let s=e&&e.position,n=e&&e.duration;return s&&!["top","bottom","center"].includes(s)&&(s=void 0),M(n)||(n=void 0),this.Cl.animateScrollIntoView(i,s,n)}la(t){return Bt(t.node),null}ra(t){const i=t.node;if(i.classList.contains("i-amphtml-element")){const t=i;this.ia.mutateElement(t,(()=>t.collapse()),!0)}else this.ia.mutateElement(i,(()=>Ce(i,!1)));return null}ha(t){const{node:i}=t,e=i,s=Mt(e);if(e.classList.contains(cs(ts)))return null;this.ia.measureElement((()=>{"none"==De(s,e).display&&Oo(e)}));const n=(r=e).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&Ji(s).isIos()?(this.Aa(e,n),this.ia.mutateElement(e,(()=>{}))):this.ia.mutateElement(e,(()=>{this.Aa(e,n)})),null}Aa(t,i){t.classList.contains("i-amphtml-element")?t.expand():Ce(t,!0),i&&Bt(i)}oa(t){return Oo(t.node)?this.ha(t):this.ra(t)}ca(t){const i=t.node,{args:e}=t,s=yt().assertString(e.class,"Argument 'class' must be a string.");return Co.test(s)||this.ia.mutateElement(i,(()=>{if(void 0!==e.force){const t=yt().assertBoolean(e.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(s,t)}else i.classList.toggle(s)})),null}da(t){const i=t.node,{args:e}=t;return this.ia.mutateElement(i,(()=>{if(void 0!==(null==e?void 0:e.force)){const t=yt().assertBoolean(e.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null}},!0)}(t),function(t,i){var e,s;e=t,s=new Error("Un-supported service: "+i),function(t,i,e){const s=Si(t),n=s[i];n?n.reject&&n.reject(e):(s[i]=Li(),s[i].reject(e))}(Mi(Ri(e)),"storage",s)}(t,"storage"),function(t){gi(t,yo,Mo,!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",Yo,!0)}))}(t)}var ah,uh,ch="none",dh="v0";function fh(t){return void 0===ah&&(i=t||Element,ah=i.prototype.attachShadow?"v1":i.prototype.createShadowRoot?dh:ch),ah;var i}function ph(t,i,e){var s="";return t&&Array.prototype.forEach.call(t,(function(t){if(t.selectorText&&t.style&&void 0!==t.style.cssText)s+=function(t,i,e){var s=[];return t.split(",").forEach((function(t){t=t.trim(),e&&(t=e(t)),function(t,i){var e=function(t){return t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+t+")"+_h,"m")}(i);return!t.match(e)}(t,i)&&(t=function(t,i){return function(t,i){return t.match(vh)?(t=t.replace(Ah,i)).replace(vh,i+" "):i+" "+t}(t,i)}(t,i)),s.push(t)})),s.join(", ")}(t.selectorText,i,e)+" {\n\t",s+=function(t){var i=t.style.cssText;t.style.content&&!t.style.content.match(/['"]+|attr/)&&(i=i.replace(/content:[^;]*;/g,"content: '"+t.style.content+"';"));var e=t.style;for(var s in e)"initial"===e[s]&&(i+=s+": initial; ");return i}(t)+"\n}\n\n";else if(t.type===CSSRule.MEDIA_RULE)s+="@media "+t.media.mediaText+" {\n",s+=ph(t.cssRules,i),s+="\n}\n\n";else try{t.cssText&&(s+=t.cssText+"\n\n")}catch(t){}})),s}var mh="-shadowcsshost",gh=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",_h=(new RegExp("("+mh+gh,"gim"),new RegExp("(-shadowcsscontext"+gh,"gim"),"([>\\s~+[.,{:][\\s\\S]*)?$"),Ah=mh+"-no-combinator",vh=new RegExp(mh,"gim"),Ph=(new RegExp("-shadowcsscontext","gim"),/[^\.\-\_0-9a-zA-Z]/),yh=/[^\-\_0-9a-zA-Z]/;function bh(t){const i=Mt(t),e=t.shadowRoot||t.__AMP_SHADOW_ROOT;if(e){if(self.trustedTypes&&self.trustedTypes.createPolicy){const t=self.trustedTypes.createPolicy("shadow-embed#createShadowRoot",{createHTML:function(t){return""}});e.innerHTML=t.createHTML("")}else e.innerHTML="";return e}let s;const n=fh();if("v1"==n?(s=t.attachShadow({mode:"open"}),s.styleSheets||Object.defineProperty(s,"styleSheets",{get:function(){const t=[];return s.childNodes.forEach((i=>{"STYLE"===i.tagName&&t.push(i.sheet)})),t}})):s=n==dh?t.createShadowRoot():function(t){const i=t.ownerDocument;t.classList.add("i-amphtml-shadow-host-polyfill");const e=i.createElement("style");e.textContent=".i-amphtml-shadow-host-polyfill>:not(i-amphtml-shadow-root){display:none!important}",t.appendChild(e);const s=i.createElement("i-amphtml-shadow-root");return t.appendChild(s),t.__AMP_SHADOW_ROOT=s,Object.defineProperty(t,"shadowRoot",{enumerable:!0,configurable:!0,value:s}),s.host=t,s.getElementById=function(t){const i=It(t);return s.querySelector(`#${i}`)},Object.defineProperty(s,"styleSheets",{get:()=>i.styleSheets?v(i.styleSheets).filter((t=>s.contains(t.ownerNode))):[]}),s}(t),!function(){if(void 0!==uh)return uh;if(fh()==ch)uh=!1;else{const i=fh()===dh?self.document.createElement("div").createShadowRoot():self.document.createElement("div").attachShadow({mode:"open"});t=ShadowRoot,uh=!!t&&-1!=t.toString().indexOf("[native code]")&&i instanceof ShadowRoot}var t;return uh}()){const t=`i-amphtml-sd-${i.Math.floor(1e4*i.Math.random())}`;s.id=t,s.host.classList.add(t),r=t=>function(t,i){return function(t,i){const e=Tt(t.id),s=t.ownerDocument;let n=null;try{n=Rh(s.implementation.createHTMLDocument(""),i)}catch(t){}if(!n)try{n=Rh(s,i)}catch(t){}return n?ph(n,`.${e}`,Eh):i}(t,i)}(s,t),s.__AMP_CSS_TR=r}var r;return s}function Eh(t){return t.replace(/(html|body)/g,Th)}function Th(t,i,e,s){const n=s.charAt(e-1),r=s.charAt(e+t.length);return n&&!Ph.test(n)||r&&!yh.test(r)?t:"amp-"+t}function Rh(t,i){const e=t.createElement("style");e.textContent=i;try{return(t.head||t.documentElement).appendChild(e),e.sheet?e.sheet.cssRules:null}finally{e.parentNode&&e.parentNode.removeChild(e)}}function Mh(t,i,e){const s=self.document.createElement("style");s.textContent=e;const n=bh(t);return n.appendChild(s),n.appendChild(i),t}var wh="amp4ads-vars-",Ih=["cta-accent-color","cta-accent-element","cta-image","theme"];function xh(t){const i=t.document;if(!i.fonts||!i.fonts.values)return;const e=i.fonts.values();let s;for(;s=e.next();){const t=s.value;if(!t)return;"loading"==t.status&&"display"in t&&"auto"==t.display&&(t.display="swap")}}var Vh,Sh=["amp-ad","amp-embed","amp-video"],Oh="extensions",kh="latest",Ch="__AMP_EXT_LDR";function Lh(t){Sh.forEach((i=>{Pr(t,i)}))}function Nh(){return{}}function Dh(t,i){return`${t}:${i}`}vt=class{constructor(t,i,e=""){this.win=t,this.nn=i,this.tn=this.rn(),this.en=e,this.on=null,this.un=function(t){let i=!1,e=null,s=t;return(...t)=>(i||(e=s.apply(self,t),i=!0,s=null),e)}((()=>{t.fetch(`${it}/rtv/012405231944000/log-messages.simple.json`).then((t=>t.json()),dt).then((t=>{t&&(this.on=t)}))})),this.sn=this.assert.bind(this)}rn(){var t;const{win:i}=this;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=_t(i)?this.cn():0}cn(t){return this.nn(_t(t),!1)}ln(t,i,e){var s,n;if(i>(null!==(s=ft)&&void 0!==s?s:this.tn))return!1;const r=this.win.console,o=null!==(n={1:r.error,3:r.info,2:r.warn}[i])&&void 0!==n?n:r.log,h=this.fn(e),l=`[${t}]`;return T(h[0])?h[0]=l+" "+h[0]:h.unshift(l),o.apply(r,h),!0}fine(t,...i){this.ln(t,4,i)}info(t,...i){this.ln(t,3,i)}warn(t,...i){this.ln(t,2,i)}error(t,...i){if(!this.ln(t,1,i)){var e,s;const n=this.createError.apply(this,i);n.name=t||n.name,null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,n)}}expectedError(t,...i){var e,s;this.ln(t,1,i)||null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,this.createExpectedError.apply(this,i))}createError(t){return this.an(h.apply(null,arguments))}createExpectedError(t){return this.an(u.apply(null,arguments))}an(t){return t=o(t),this.en?t.message?-1==t.message.indexOf(this.en)&&(t.message+=this.en):t.message=this.en:V(t.message)&&(t.message=t.message.replace(w,"")),t}fn(t){return P(t[0])?this.dn(t[0]):t}dn(t){var i;const e=t.shift();return null!==(i=this.on)&&void 0!==i&&i[e]?[this.on[e]].concat(t):[`More info at ${mt(e,t)}`]}assert(t,i,e){return P(i)?this.assert.apply(this,[t].concat(this.dn(i))):S.apply(null,[this.en].concat(Array.prototype.slice.call(arguments)))}assertElement(t,i){return function(t,i,e){return O(t,i,R(i),"Element expected",e)}(this.sn,t,i)}assertString(t,i){return function(t,i,e){return O(t,i,T(i),"String expected",e)}(this.sn,t,i)}assertNumber(t,i){return function(t,i,e){return O(t,i,"number"==typeof i,"Number expected",e)}(this.sn,t,i)}assertArray(t,i){return function(t,i,e){return O(t,i,P(i),"Array expected",e)}(this.sn,t,i)}assertBoolean(t,i){return function(t,i,e){return O(t,i,!!i===i,"Boolean expected",e)}(this.sn,t,i)}},Et(),yt(),Vh=function(t,i,e){Cn(i,e),i&&t&&V(i.message)&&!(i.message.indexOf(I)>=0)&&function(t,i){if(ji(i).isSingleDoc()){const e={"errorName":t.name,"errorMessage":t.message};!function(t,i,e={},s=!0){var n;(n=t,Di(n,"amp-analytics-instrumentation","amp-analytics")).then((n=>{n&&n.triggerEventForTarget(t,i,e,s)}))}(function(t){const i=ji(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",e,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=Vh;var Uh,$h="runtime";function Fh(t,i){if(t.__AMP_TAG)return s();t.__AMP_TAG=!0;const e=t.AMP||[];mi(t,"extensions",class{constructor(t){this.win=t,this.mo=ji(t),this.Ya={},this.Ja=null,this.Qa=null,this.Xa=null}registerExtension(t,i,e,s,n){var r;const o=e?this.Ya[Dh(t,kh)]:null,h=this.Za(t,i,null===(r=null==o?void 0:o.auto)||void 0===r||r);if(h.latest=e,!h.loaded){e&&(this.Ya[Dh(t,kh)]=h);try{var l,a;this.Ja=t,this.Qa=i,this.Xa=e,s(n,n._),h.loaded=!0,null===(l=h.resolve)||void 0===l||l.call(h,h.extension),null==o||null===(a=o.resolve)||void 0===a||a.call(o,h.extension)}catch(t){var u,c;throw h.error=t,null===(u=h.reject)||void 0===u||u.call(h,t),null==o||null===(c=o.reject)||void 0===c||c.call(o,t),t}finally{this.Ja=null,this.Qa=null,this.Xa=null}}}waitForExtension(t,i){const e=this.td(this.Za(t,i));return ie(this.win).timeoutPromise(16e3,e).catch((i=>{if(!i.message.includes("timeout"))throw i;return yt().error(Oh,`Waited over 16s to load extension ${t}.`),e}))}preloadExtension(t,i="0.1"){"amp-embed"==t&&(t="amp-ad");const e=this.Za(t,i);return this.sd(t,i,e),this.td(e)}installExtensionForDoc(t,i,e="0.1"){const s=t.getRootNode();let n=s[Ch];return n||(n=s[Ch]=p()),n[i]?n[i]:(t.declareExtension(i,e),Pr(t.win,i),n[i]=this.preloadExtension(i,e).then((()=>this.installExtensionInDoc(t,i,e))))}reloadExtension(t,i,e){const s=fi(this.win,t,i,e,!1),n=this.Ya[Dh(t,i)];return n&&(Tt(!n.loaded&&!n.error),n.scriptPresent=!1),s.forEach((i=>i.setAttribute("i-amphtml-loaded-new-version",t))),this.preloadExtension(t,i)}importUnwrapped(t,i,e="0.1",s=!0){const n=fi(t,i,e,s);let r,o=n.length>0?n[0]:null;return o?r=o.__AMP_SCR_LOADED:(o=di(this.win,i,e),r=o.__AMP_SCR_LOADED=new Promise(((t,i)=>{o.onload=t,o.onerror=i})),t.document.head.appendChild(o)),r}loadElementClass(t,i="0.1"){return this.preloadExtension(t,i).then((i=>Tt(i.elements[t]).implementationClass))}addElement(t,i,e){this.ed(t).extension.elements[t]={implementationClass:i,css:e},this.addDocFactory((s=>{this.nd(s,t,i,e)}))}addTemplate(t,i){this.addDocFactory((e=>{!function(t,i,e){vi(t,"templates").fu(i,e)}(e,t,i)}))}nd(t,i,e,s){s?en(t,s,(()=>{this.rd(t.win,i,e)}),!1,i):this.rd(t.win,i,e)}rd(t,i,e){(function(t,i,e){const s=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return Ki(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,e);s?s.then((()=>_r(t,i,e))):_r(t,i,e)})(t,i,e),mi(t,i,Nh)}addService(t,i){this.ed(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((e=>{gi(e,t,i,!0)}))}addDocFactory(t,i){const e=this.ed(i);if(e.docFactories.push(t),this.Ja&&this.mo.isSingleDoc()){const i=this.mo.getAmpDoc(this.win.document),s=this.Ja,n=this.Qa,r=this.Xa||!1;(i.declaresExtension(s,n)||r&&i.declaresExtension(s,kh)||e.auto)&&t(i)}}preinstallEmbed(t,i){const e=this.win,s=t.win;!function(t,i){yr(t,i,"amp-img"),yr(t,i,"amp-pixel")}(e,s),Lh(s),i.forEach((({extensionId:i,extensionVersion:e})=>{t.declareExtension(i,e),Sh.includes(i)||Pr(s,i)}))}installExtensionsInDoc(t,i){return Promise.all(i.map((({extensionId:i,extensionVersion:e})=>this.installExtensionInDoc(t,i,e))))}installExtensionInDoc(t,i,e="0.1"){return t.declareExtension(i,e),this.td(this.Za(i,e)).then((()=>{this.Za(i,e).docFactories.forEach((e=>{try{e(t)}catch(t){a("Doc factory failed: ",t,i)}}))}))}Za(t,i,e){const s=Dh(t,i);let n=this.Ya[s];return n||(n={version:i,latest:i==kh,extension:{elements:{},services:[]},auto:e||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.Ya[s]=n),n}ed(t){return this.Ja||Et().error(Oh,"unknown extension for ",t),this.Za(this.Ja||"_UNKNOWN_",this.Qa||"")}td(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{const i=new n;t.promise=i.promise,t.resolve=i.resolve,t.reject=i.reject}return t.promise}sd(t,i,e){if(this.hd(t,i,e)){const s=di(this.win,t,i);this.win.document.head.appendChild(s),e.scriptPresent=!0}}hd(t,i,e){if(e.loaded||e.error)return!1;if(void 0===e.scriptPresent){const s=fi(this.win,t,i,e.latest);e.scriptPresent=s.length>0}return!e.scriptPresent}});const r=Ki(t);Zo(t),Lh(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:J,thirdPartyFrameHost:Z,thirdPartyFrameRegex:tt,cdn:it,cdnProxyRegex:Q,localhostRegex:et,errorReporting:st,betaErrorReporting:nt,localDev:rt,trustedViewerHosts:ot,geoApi:ht}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=tr,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=zs.bind(null,t),t.AMP.toggleExperiment=Hs.bind(null,t),t.AMP.setLogLevel=pt.bind(null),t.AMP.setTickFunction=(t,i)=>{};const o=i(t,r);function h(i){!function(t,i,e){"function"==typeof i||"high"==i.p?s().then(e):(e.displayName=i.n,Kn(t.document,e))}(t,i,(()=>{o.then((()=>{"function"==typeof i?i(t.AMP,t.AMP.od):r.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(let i=0;i<e.length;i++){const s=e[i];if(zh(t,s))e.splice(i--,1);else if("function"==typeof s||"high"==s.p){try{h(s)}catch(t){Et().error($h,"Extension failed: ",t,s.n)}e.splice(i--,1)}}!function(t,i){t.document.body&&!function(t){return tn(t).length>0}(t)?ie(t).delay(i,1):i()}(t,(()=>{t.AMP.push=function(i){zh(t,i)||h(i)};for(let i=0;i<e.length;i++){const s=e[i];if(!zh(t,s))try{h(s)}catch(t){Et().error($h,"Extension failed: ",t,s.n)}}e.length=0})),t.AMP.push||(t.AMP.push=e.push.bind(e)),Ji(t).isIos()&&Oe(t.document.documentElement,"cursor","pointer");const l=Ki(t);return ii(t)&&l.preloadExtension("amp-resize-observer-polyfill"),Jt(t)&&l.preloadExtension("amp-intersection-observer-polyfill"),o}function zh(t,i){if("function"==typeof i)return!1;if(!i.m)return!0;const{v:e}=i;return"2405231944000"!=e&&(Ki(t).reloadExtension(i.n,i.ev,i.l),!0)}at(self).runtime="inabox",at(self).a4aId=function(t){const i=self.document.head.querySelector('meta[name="amp4ads-id"]');return i?i.getAttribute("content"):null}();try{!function(t){t.onerror=Dn,t.addEventListener("unhandledrejection",(t=>{!t.reason||t.reason.message!==Vn&&t.reason.message!==Sn&&"AbortError"!==t.reason.message?Cn(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,e){mi(t,"ampdoc",(function(){return new class{constructor(t,i,e){this.win=t,this.Wa=null,i&&(this.Wa=new Qe(t,{params:Ze(t,e)}),t.document.__AMPDOC=this.Wa)}isSingleDoc(){return!!this.Wa}getSingleDoc(){return Tt(this.Wa)}Ka(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null}getAmpDocIfAvailable(t){let i=t;for(;i;){const e=this.Ka(t);if(e)return e;const s=zt(i);if(!s)break;const n=s.__AMPDOC;if(n)return n;i=s.host?s.host:Ti(s,this.win)}return null}getAmpDoc(t){const i=this.getAmpDocIfAvailable(t);if(!i)throw Et().createError("No ampdoc found for",t);return i}installShadowDoc(t,i,e){Tt(!i.__AMPDOC);const s=new Xe(this.win,t,i,e);return i.__AMPDOC=s,s}installFieDoc(t,i,e){const s=i.document;Tt(!s.__AMPDOC);const n=Tt(i.frameElement),r=new Je(i,t,this.getAmpDoc(n),e);return s.__AMPDOC=r,r}}(t,!0,void 0)}))}(self),Uh=ji(self)}catch(t){throw rn(self.document),t}qn=!0,Kn(self.document,(function(){const t=Uh.getAmpDoc(self.document);Vo(self),mi(self,"performance",class{constructor(t){this.win=t,this.Nm=lo(z(t,16)),this.Dm=[],this.Um=t.performance.timeOrigin||t.performance.timing.navigationStart,this.ji=null,this.We=null,this.Ei=null,this.$m=null,this.Fm=!1,this.zm=!1,this.Hm=p(),this.Bm=void 0,this.jm=new me,this.Gm=0,this.qm=[],this.Wm=0;const i=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(i.includes("paint")||this.jm.rejectSignal("fcp",Et().createExpectedError("First Contentful Paint not supported")),this.Km=i.includes("layout-shift"),!this.Km){const t=Et().createExpectedError("Cumulative Layout Shift not supported");this.jm.rejectSignal(ni,t),this.jm.rejectSignal(oi,t)}this.Ym=i.includes("first-input"),this.Ym||this.jm.rejectSignal("fid",Et().createExpectedError("First Input Delay not supported")),this.Qm=i.includes("largest-contentful-paint"),this.Qm||this.jm.rejectSignal("lcp",Et().createExpectedError("Largest Contentful Paint not supported")),this.Xm=i.includes("navigation"),this.Jm=i.includes("event")&&zs(t,"interaction-to-next-paint"),this.Jm||this.jm.rejectSignal(li,Et().createExpectedError("Interaction to next paint not supported")),this.Zm=this.Zm.bind(this),this.addEnabledExperiment("rtv-"+at(this.win).rtvVersion),Re(t.document).then((()=>{this.tick("dr"),this.flush()})),Me(t.document).then((()=>this.tg())),Me(t.document).then((()=>this.ig(40))),this.eg(),this.sg=!1,this.ng=B(t,(()=>{this.rg()}),6e3)}coreServicesAvailable(){const{documentElement:t}=this.win.document;this.ji=Bi(t),this.We=re(t),this.Ei=te(t),this.$m=Wi(this.ji),this.zm=this.We.isEmbedded()&&"1"===this.We.getParam("csi"),this.ji.onVisibilityChanged(this.flush.bind(this)),this.og();const i=this.We.whenMessagingReady();return this.ji.whenFirstVisible().then((()=>{this.tick("ofv"),this.flush()})),(this.Qm||this.Km)&&this.ji.onVisibilityChanged(this.Zm),i?i.then((()=>{this.tickDelta("msr",this.win.performance.now()),this.tick("timeOrigin",void 0,this.Um);const t=this.ji.getMetaByName("amp-usqp");return t&&t.split(",").forEach((t=>{this.addEnabledExperiment("ssr-"+t)})),this.hg()})).then((()=>{this.Fm=!0,this.lg(),this.flush()})):s()}hg(){return(t=ji(this.win).getSingleDoc(),t.waitForBodyOpen().then((()=>{const i=t.getBody(),e=(s=i,n=()=>!!i.firstElementChild,new Promise((t=>{Nt(s,n,t)})));var s,n;return ie(t.win).timeoutPromise(2e3,e).then((()=>"AMP-STORY"===i.firstElementChild.tagName),(()=>!1))}))).then((t=>{t&&this.addEnabledExperiment("story")}));var t}tg(){this.tick("ol"),this.flush()}eg(){if("inabox"===at(this.win).runtime)return;let t=!1,i=!1,e=!1,s=!1;const n=n=>{if("first-paint"!=n.name||t)if("first-contentful-paint"!=n.name||i)if("first-input"!==n.entryType||e)"layout-shift"===n.entryType?n.hadRecentInput||(this.ag(n),this.Wm+=n.value):"largest-contentful-paint"===n.entryType?this.ug(n):"navigation"!=n.entryType||s?"event"==n.entryType&&n.interactionId&&this.ig(n.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((t=>this.tick(t,n[t]))),s=!0);else{const t=n.processingStart-n.startTime;this.tickDelta("fid",t),e=!0}else{const t=n.startTime+n.duration;this.tickDelta("fcp",t),this.tickSinceVisible("fcpv",t),i=!0}else this.tickDelta("fp",n.startTime+n.duration),t=!0},r=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(n),r.push("paint")),this.Ym&&this.cg(n,{type:"first-input",buffered:!0}),this.Km&&this.cg(n,{type:"layout-shift",buffered:!0}),this.Qm&&this.cg(n,{type:"largest-contentful-paint",buffered:!0}),this.Xm&&this.cg(n,{type:"navigation",buffered:!0}),this.Jm&&this.cg(n,{type:"event",durationThreshold:40,buffered:!0}),r.length>0&&this.cg(n,{entryTypes:r})}cg(t,i){try{new this.win.PerformanceObserver((i=>{i.getEntries().forEach(t),this.flush()})).observe(i)}catch(t){}}dg(){const t=this.ji.getVisibilityState();return t===fe||t===ce}Zm(){this.dg()&&(this.fg(),this.rg())}pg(){if(!this.sg){this.sg=!0;const{win:t}=this,i=parseInt(De(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment(`google-font-exp=${i}`)}}fg(){this.Km&&(this.pg(),this.mg())}ag(t){if(!this.ji)return;if(this.dg())return;const i=this.qm;if(i.length>0){const e=i[0],s=i[i.length-1];if(t.startTime-s.startTime<1e3&&t.startTime-e.startTime<5e3)return void i.push(t);this.rg()}i.push(t),this.ng()}rg(){const t=this.qm,i=this.jm.get(ni);let e=0,s=0;for(const i of t){if(i.sources)for(const t of i.sources)e|=ih(t.node);s+=i.value}t.length=0,this.pg(),(null==i||s>i)&&(this.jm.reset(ni),this.jm.reset(ri),this.tickDelta(ni,s),this.tickDelta(ri,e),this.flush())}ig(t){if(!this.ji)return;const i=this.jm.get(li);(null==i||t>i)&&(this.tickDelta(li,t-(null!=i?i:0)),this.flush())}mg(){0===this.Gm?(this.tickDelta(oi,this.Wm),this.flush(),this.Gm=1):1===this.Gm&&(this.tickDelta("cls-2",this.Wm),this.flush(),this.Gm=2)}ug(t){const{element:i,startTime:e}=t,s=ih(i);this.tickDelta("lcpt",s),this.tickDelta("lcp",e),this.tickSinceVisible("lcpv",e),this.flush()}og(){const t=!this.ji.hasBeenVisible();let i=-1;this.ji.whenFirstVisible().then((()=>{i=this.win.performance.now(),this.mark("visible")})),this.gg().then((()=>{if(t){const t=i>-1?this.win.performance.now()-i:0;this.ji.whenFirstVisible().then((()=>{this.tickDelta(hi,t)})),this._g(t),this.mark(hi)}else this.tick(hi),this._g(this.win.performance.now()-i);this.flush()}))}gg(){return this.Ei.whenFirstPass().then((()=>{const{documentElement:t}=this.win.document,i=he(t).getSize();return Yt(0,0,i.width,i.height),e=t,this.win,function(t,i){const e=Bi(t);return e.signals().whenSignal(Fn).then((()=>{const t=te(e).get().filter((t=>!(!t.prerenderAllowed()||th.includes(t.element.tagName)))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((i=>{const{win:s}=e,n=new s.IntersectionObserver((t=>{n.disconnect();const e=[];for(let i=0;i<t.length;i++){const{isIntersecting:s,target:n}=t[i];s&&e.push(n)}i(e)}),{root:jt(s)?s.document:null,threshold:.01});for(let i=0;i<Math.min(t.length,100);i++)n.observe(t[i])})).then((t=>Promise.all(t.map((t=>t.whenLoaded())))))}))}(e);var e}))}tick(t,i,e){Tt(null==i||null==e);const s={"label":t};let n;null!=i?s.delta=n=Math.max(i,0):null!=e?s.value=e:(this.mark(t),n=this.win.performance.now(),s.value=this.Um+n),this.win.dispatchEvent(Ws(this.win,"perf",{label:t,delta:n})),this.Fm&&this.zm?this.We.sendMessage("tick",s):this.Ag(s),this.jm.signal(t,n)}mark(t){var i,e;null===(i=(e=this.win.performance).mark)||void 0===i||i.call(e,t)}tickDelta(t,i){this.tick(t,i)}tickSinceVisible(t,i){var e,s;const n=null==i?this.win.performance.now():i,r=this.Um+n,o=null!==(e=this.We)&&void 0!==e&&e.isEmbedded()?null===(s=this.ji)||void 0===s?void 0:s.getFirstVisibleTime():this.Um,h=o?Math.max(r-o,0):0;this.tickDelta(t,h)}flush(){this.Fm&&this.zm&&(null==this.Bm&&(this.Bm=Object.keys(this.Hm).join(",")),this.We.sendMessage("sendCsi",{"ampexp":this.Bm,"canonicalUrl":this.$m.canonicalUrl,"eventid":this.Nm},!0))}addEnabledExperiment(t){this.Hm[t]=!0,this.Bm=void 0}Ag(t){this.Dm.length>=50&&this.Dm.shift(),this.Dm.push(t)}lg(){this.We&&(this.zm?(this.Dm.forEach((t=>{this.We.sendMessage("tick",t)})),this.Dm.length=0):this.Dm.length=0)}_g(t){this.We&&this.We.sendMessage("prerenderComplete",{"value":t},!0)}isPerformanceTrackingOn(){return this.zm}getMetric(t){return this.jm.whenSignal(t)}});const i=Xi(self);i.tick("is"),self.document.documentElement.classList.add("i-amphtml-inabox"),en(t,"[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/html.i-amphtml-inabox{width:100%!important;height:100%!important}",(()=>{Kn(self.document,(function(){Zo(self),function(t){Ee(t.document,(()=>function(t){let i=1500;const e=t.performance;e&&e.timing&&e.timing.navigationStart&&(i=Date.now()-e.timing.navigationStart);const s=Math.max(1,2100-i);t.setTimeout((()=>{xh(t);const{styleSheets:i}=t.document;if(!i)return;const e=t.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="${It(it)}"])`),n=[];for(let t=0;t<e.length;t++){const s=e[t];let r=!1;for(let t=0;t<i.length;t++)if(i[t].ownerNode==s){r=!0;break}r||n.push(s)}for(let i=0;i<n.length;i++){const e=n[i],r=e.media||"all";e.media="print",e.onload=()=>{e.media=r,xh(t)},e.setAttribute("i-amphtml-timeout",s),e.parentNode.insertBefore(e,e.nextSibling)}}),s)}(t)))}(self),lh(t),i.coreServicesAvailable(),_o=s(),function(t){const{win:i}=t,e=t.getRootNode();var s,n,r,o;(s=t,n=i,r=he(t).getLayoutRect(e.documentElement||e.body||e),function(t,i,e){return t.signals().whenSignal(Fn).then((()=>{const e=[];return te(t).get().forEach((t=>{t.hasBeenMeasured()||t.hostWin!=i||t.hasOwner()||e.push(t.ensureMeasured())})),Promise.all(e)})).then((()=>te(t).get().filter((t=>t.hostWin==i&&!t.hasOwner()&&t.hasBeenMeasured()&&(t=>!(!t.isDisplayed()||!t.overlaps(r)&&!t.isFixed()||o&&!t.prerenderAllowed()))(t)))))}(Bi(s),n).then((t=>{const i=[];return t.forEach((t=>{th.includes(t.element.tagName)||i.push(t.loadedOnce())})),Promise.all(i)}))).then((()=>{i.dispatchEvent(Ws(i,"amp-ini-load",null,{bubbles:!0})),i.parent&&i.parent.postMessage("amp-ini-load","*")}))}(t)})),Kn(self.document,(function(){!function(t){!function(t){br(t,Tr,Mr)}(t),function(t){br(t,Vr,Sr)}(t),function(t){br(t,"amp-layout",wr)}(t)}(self)})),Kn(self.document,(function(){Fh(self,(t=>(function(t){const{documentElement:i}=t.document,e=ji(t).getSingleDoc();t.AMP.ampdoc=e;const s=re(i);t.AMP.viewer=s;const n=he(i);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=n.getScrollLeft.bind(n),t.AMP.viewport.getScrollWidth=n.getScrollWidth.bind(n),t.AMP.viewport.getWidth=n.getWidth.bind(n)}(t),Dt(t.document).then((()=>{vr(t.AMP.ampdoc)})))))})),Kn(self.document,(function(){vr(t)})),Kn(self.document,(function(){Mo.installAnchorClickInterceptor(t,self),function(t){const{win:i}=t,e=i.document,s=function(t){const i=p();return t.forEach((t=>{const{content:e,name:s}=t;if(s.startsWith("amp-cta-")){const t=s.split("amp-")[1];i[t]=e}else if(s.startsWith(wh)){const t=s.split(wh)[1];i[t]=e}})),i}(function(t){return t.querySelectorAll("meta[name]")}(e));if(!(n=s)["cta-type"]||!n["cta-url"])return;var n;en(t,".i-amphtml-story-ad-link-root{all:initial!important;color:initial!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-direction:column!important;flex-direction:column!important;-ms-flex-align:center!important;align-items:center!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-shared.css*/amp-story-cta-layer{display:block!important;position:absolute!important;top:80%!important;right:0!important;bottom:0!important;left:0!important;margin:0!important;z-index:2147483642!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-inabox.css*/",(()=>{})),function(t,i,e){const s=t.document;try{const n=i["attribution-url"],r=i["attribution-icon"];if(!n||!r)return null;vn(n,e,"amp-story-auto-ads attribution url"),vn(r,e,"amp-story-auto-ads attribution icon");const o=$t(s,"div",{"role":"button","class":"i-amphtml-attribution-host"}),h=$t(s,"img",{"class":"i-amphtml-story-ad-attribution","src":r});h.addEventListener("click",(i=>function(t,i){Po(t,i,"_blank")}(t,n))),Mh(o,h,".i-amphtml-story-ad-attribution{position:absolute;bottom:0!important;left:0!important;max-height:15px!important;z-index:4!important}.i-amphtml-story-ad-fullbleed.i-amphtml-story-ad-attribution{bottom:12.5vh!important;left:50%!important;transform:translateX(-22.5vh)!important}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-attribution.css*/"),e.appendChild(o)}catch(t){return null}}(i,s,e.body);const r=new class{constructor(t){this.ia=Qi(t),this.if=t.win.document,this.vg=this.if.createElement("div"),this.ia.mutateElement(this.vg,(()=>{this.if.body.appendChild(this.vg),ke(this.vg,{position:"absolute",top:0,left:0,zIndex:1,visibility:"hidden","font-weight":"bold","letter-spacing":"0.2px"})}))}fit(t,i,e){let s=!1;return this.ia.mutateElement(i,(()=>{this.vg.textContent=e;const n=function(t,i,e,s,n){for(let i=14;i>=12;i--){Oe(t,"fontSize",Le(i));const s=t.offsetHeight,n=t.offsetWidth;if(s<32&&n<e)return i}return 11}(this.vg,0,this.Pg(t));n>=12&&(this.yg(i,n),s=!0)})).then((()=>s))}Pg(t){return t.offsetWidth-84}yg(t,i){Oe(t,"fontSize",Le(i))}}(t),o=e.createElement("div");(function(t,i,e,s){const n=s["cta-url"],r=s["cta-type"],o=$t(t,"a",{"class":"i-amphtml-story-ad-link","target":"_blank","href":n});return i.fit(e,o,r).then((i=>{if(!i)return null;if(o.href=n,o.textContent=r,"https:"!==o.protocol&&"http:"!==o.protocol)return null;const h=function(t,i){return t.__AMP_EXPERIMENT_BRANCHES?t.__AMP_EXPERIMENT_BRANCHES["story-ad-auto-advance"]:null}(t.defaultView);return"31067118"==h||"31067119"==h?function(t,i,e){const s=t.createElement("amp-story-page-outlink");s.setAttribute("layout","nodisplay");const n=$t(t,"a",{"class":"i-amphtml-story-ad-link","target":"_top","href":i["cta-url"]});n.textContent=i["cta-type"],s.appendChild(n);for(const t of Ih)i[t]&&s.setAttribute(t,i[t]);return Ki(Mt(t)).installExtensionForDoc(Ri(t),"amp-story-page-attachment","0.1"),s.className="i-amphtml-story-page-outlink-container",e.appendChild(s),n}(t,s,e):function(t,i,e){const s=i.createElement("amp-story-cta-layer");s.className="i-amphtml-cta-container";const n=$t(i,"div",{"class":"i-amphtml-story-ad-link-root","role":"button"});return Mh(n,t,".i-amphtml-story-ad-link{background-color:#fff!important;border-radius:20px!important;box-sizing:border-box!important;bottom:32px!important;box-shadow:0px 2px 12px rgba(0,0,0,.16)!important;color:#4285f4!important;font-family:Roboto,sans-serif!important;font-weight:700!important;height:36px!important;letter-spacing:0.2px!important;line-height:36px!important;overflow:hidden!important;opacity:0;padding:0 10px!important;position:absolute!important;text-align:center!important;text-decoration:none!important;min-width:120px!important;max-width:calc(100vw - 64px)}[cta-active].i-amphtml-story-ad-link{animation-delay:100ms!important;animation-duration:300ms!important;animation-timing-function:cubic-bezier(0.4,0,0.2,1)!important;animation-fill-mode:forwards!important;animation-name:ad-cta!important}@keyframes ad-cta{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}\n/*# sourceURL=/extensions/amp-story-auto-ads/0.1/amp-story-auto-ads-cta-button.css*/"),s.appendChild(n),e.appendChild(s),t}(o,t,e)}))})(e,r,o,s).then((t=>t&&t.setAttribute("cta-active",""))),e.body.appendChild(o),i.parent&&i.parent.postMessage("amp-story-ad-load","*")}(t),function(t){const i=t.location.href;if(i.startsWith("about:"))return;let e=!1;const s=K(t);ct(t,s)&&(e="0"!==s.validate),e&&function(t,i){const e=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){const t=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});e.src=t.createScriptURL(i)}else e.src=i;Kt(t,e);const s=Xs(e).then((()=>{t.head.removeChild(e)}),(()=>{}));return t.head.appendChild(e),s}(t.document,`${it}/v0/validator_wasm.js`).then((()=>{amp.validator.validateUrlAndLog(i,t.document)}))}(self),function(t){Tt(t.defaultView);const i=t.defaultView;Dt(t).then((()=>function(t){const i=tn(t).map((i=>{const e=function(t,i){return xi(t,i)}(t,i).then((t=>t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((()=>t)):t));return ie(t).timeoutPromise(3e3,e,`Render timeout waiting for service ${i} to be ready.`)}));return Promise.all(i)}(i))).catch((t=>(a(t),[]))).then((e=>{nn=!0,t.body.getBoundingClientRect(),on(t),Ri(t).signals().signal(ws),e.length>0&&te(t.documentElement).schedulePass(1,!0);try{const t=Xi(i);t.tick("mbv"),t.flush()}catch(t){}}))}(self.document)}),!0),Kn(self.document,(function(){i.tick("e_is"),te(t).ampInitComplete(),i.flush()}))}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version 2405231944000",self.location.href),self.document.documentElement.setAttribute("amp-version","2405231944000")})();
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
/**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
//# sourceMappingURL=amp4ads-v0.mjs.map